cutest-cj 1.7.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cutest.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 224cb7bb171191f5c0e9ceeea0299171871c0d8f
|
4
|
+
data.tar.gz: f8d25e5a5ca28c3fa07d00c3562da48ecb233193
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09b987489d3e419b21a31d386bfe7fd6a06b67970d8168d6d0914a69816bb83c48fdc14dac566db619c0b552bd0793f618f5abc8e6824d8d4cab14f16ba6ed81
|
7
|
+
data.tar.gz: 3a439c1113fde62e73b28e297a3d9e2562237dbcc87ec6b4126f53efc267735be90f2a6d4772c8b73ec38e38e7e1812be41ccbf1d41ab50dbb3b46fddb6e173a
|
data/lib/cutest.rb
CHANGED
@@ -7,7 +7,7 @@ class Cutest
|
|
7
7
|
autoload :Database, 'cutest/database'
|
8
8
|
|
9
9
|
unless defined?(VERSION)
|
10
|
-
VERSION = "1.7.
|
10
|
+
VERSION = "1.7.1"
|
11
11
|
FILTER = %r[/(ruby|jruby|rbx)[-/]([0-9\.])+]
|
12
12
|
CACHE = Hash.new { |h, k| h[k] = File.readlines(k) }
|
13
13
|
end
|
@@ -203,7 +203,7 @@ module Kernel
|
|
203
203
|
end
|
204
204
|
|
205
205
|
# Unlike prepare this gets evaled after each test
|
206
|
-
def
|
206
|
+
def after(&block)
|
207
207
|
cutest[:after] << block if block_given?
|
208
208
|
cutest[:after]
|
209
209
|
end
|
@@ -265,9 +265,9 @@ module Kernel
|
|
265
265
|
print ' '
|
266
266
|
time_taken = Benchmark.measure do
|
267
267
|
prepare.each { |blk| blk.call }
|
268
|
-
before.each { |blk| self.instance_eval
|
268
|
+
before.each { |blk| self.instance_eval(&blk) }
|
269
269
|
block.call(setup && self.instance_eval(&setup))
|
270
|
-
after.each { |blk| self.instance_eval
|
270
|
+
after.each { |blk| self.instance_eval(&blk) }
|
271
271
|
end
|
272
272
|
puts ''
|
273
273
|
puts " \033[93mTest: \033[0m#{cutest[:test]} \033[32m✔\033[0m"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cutest-cj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Damian Janowski
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-08-
|
13
|
+
date: 2014-08-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: pry
|