cutest 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +2 -0
  2. data/cutest.gemspec +1 -1
  3. data/lib/cutest.rb +3 -1
  4. metadata +2 -2
data/Rakefile CHANGED
@@ -1,5 +1,7 @@
1
1
  require File.expand_path("../lib/cutest", __FILE__)
2
2
 
3
+ $VERBOSE = true
4
+
3
5
  task :test do
4
6
  Cutest.run(Dir["test/*"])
5
7
  end
data/cutest.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cutest"
3
- s.version = "0.0.3"
3
+ s.version = "0.0.4"
4
4
  s.summary = "Forking tests."
5
5
  s.description = "Run tests in separate processes to avoid shared state."
6
6
  s.authors = ["Damian Janowski", "Michel Martens"]
data/lib/cutest.rb CHANGED
@@ -27,6 +27,8 @@ def flunk(caller = caller[1])
27
27
  raise ex
28
28
  end
29
29
 
30
+ @_setup = nil
31
+
30
32
  def setup(&block)
31
33
  @_setup = block if block_given?
32
34
  @_setup
@@ -39,7 +41,7 @@ def test(name = nil, &block)
39
41
  end
40
42
 
41
43
  class Cutest < Batch
42
- VERSION = "0.0.3"
44
+ VERSION = "0.0.4"
43
45
 
44
46
  def report_errors
45
47
  return if @errors.empty?
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 3
9
- version: 0.0.3
8
+ - 4
9
+ version: 0.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Damian Janowski