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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cutest.rb +4 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b82e6938d5650a90190748359cca83ed52f1f52
4
- data.tar.gz: 4e236fa33bba4f0c42803d9831e1bb7e6f533edc
3
+ metadata.gz: 224cb7bb171191f5c0e9ceeea0299171871c0d8f
4
+ data.tar.gz: f8d25e5a5ca28c3fa07d00c3562da48ecb233193
5
5
  SHA512:
6
- metadata.gz: 770fb54483a9d5e230ab9143aead6d5b960423615f27d7abebe0891c4cfd6934f968be76d85281d4e476865b8e2942e741b9618e475fcfb8508a09b7cd5c9625
7
- data.tar.gz: 393bd14d01d5639e1e75582dc94fb1a3facf19b33d0ad6a9949a61ed74ff6e9db75cad780917345c05d14d298d42998b6e7a9fe30c84f88c1007e51785d9db21
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.0"
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 before(&block)
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 blk }
268
+ before.each { |blk| self.instance_eval(&blk) }
269
269
  block.call(setup && self.instance_eval(&setup))
270
- after.each { |blk| self.instance_eval blk }
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.0
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-16 00:00:00.000000000 Z
13
+ date: 2014-08-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pry