test-spec 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -1,6 +1,6 @@
1
1
  = test/spec, a BDD interface for Test::Unit
2
2
 
3
- Copyright (C) 2006, 2007, 2008 Christian Neukirchen <mailto:chneukirchen@gmail.com>
3
+ Copyright (C) 2006, 2007, 2008, 2009 Christian Neukirchen <mailto:chneukirchen@gmail.com>
4
4
 
5
5
 
6
6
  == What is test/spec?
@@ -327,6 +327,9 @@ at my site:
327
327
  * Nested contexts now run the
328
328
  setups/teardowns/before(:all)/after(:all) of their parents.
329
329
 
330
+ * February 1st, 2009: Sixth public release 0.10.
331
+ * Support for Ruby 1.9. Now requires the test-spec gem.
332
+
330
333
 
331
334
  == Contact
332
335
 
@@ -356,7 +359,7 @@ http://chneukirchen.org/repos/testspec
356
359
 
357
360
  == Copying
358
361
 
359
- Copyright (C) 2006, 2007, 2008 Christian Neukirchen <http://purl.org/net/chneukirchen>
362
+ Copyright (C) 2006, 2007, 2008, 2009 Christian Neukirchen <http://purl.org/net/chneukirchen>
360
363
 
361
364
  test/spec is licensed under the same terms as Ruby itself.
362
365
 
data/SPECS CHANGED
@@ -90,36 +90,10 @@
90
90
  * has sensible fallbacks
91
91
 
92
92
  == flexmock
93
- * should receive and return
94
- * should receive without a block
95
- * should receive and return with a block
96
- * should have a return value
97
- * should handle missing methods
98
- * should ignore missing methods
99
- * should count correctly
100
- * should raise on bad counts
101
- * should handle undetermined counts
102
- * should handle zero counts
103
- * should have file IO with use
104
- * should have use
105
- * should handle failures during use
106
- * should deal with sequential values
107
- * respond_to? should return false for non handled methods
108
- * respond_to? should return true for explicit methods
109
- * respond_to? should return true for missing_methods when should_ignore_missing
110
- * should raise error on unknown method proc
111
- * should return callable proc on method
112
- * should return do nothing proc for missing methods
113
- * works with test/spec
93
+ * can not be found. BAIL OUT! (empty)
114
94
 
115
95
  == mocha
116
- * works with test/spec
117
- * works with test/spec and Enterprise example
118
-
119
- == stubba
120
- * works with test/spec and instance method stubbing
121
- * works with test/spec and class method stubbing
122
- * works with test/spec and global instance method stubbing
96
+ * can not be found. BAIL OUT! (empty)
123
97
 
124
98
  == Outer context
125
99
  === Inner context
@@ -158,4 +132,4 @@
158
132
  == Context Last
159
133
  * runs last
160
134
 
161
- 104 specifications, 8 disabled, 7 empty (636 requirements), 0 failures
135
+ 80 specifications, 8 disabled, 9 empty (602 requirements), 0 failures
data/bin/specrb CHANGED
File without changes
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # test/spec -- a BDD interface for Test::Unit
3
3
  #
4
- # Copyright (C) 2006, 2007, 2008 Christian Neukirchen <mailto:chneukirchen@gmail.com>
4
+ # Copyright (C) 2006, 2007, 2008, 2009 Christian Neukirchen <mailto:chneukirchen@gmail.com>
5
5
  #
6
6
  # This work is licensed under the same terms as Ruby itself.
7
7
  #
@@ -9,12 +9,12 @@
9
9
  require 'test/unit'
10
10
 
11
11
  class Test::Unit::AutoRunner # :nodoc:
12
- RUNNERS[:specdox] = lambda {
12
+ RUNNERS[:specdox] = lambda { |*args|
13
13
  require 'test/spec/dox'
14
14
  Test::Unit::UI::SpecDox::TestRunner
15
15
  }
16
16
 
17
- RUNNERS[:rdox] = lambda {
17
+ RUNNERS[:rdox] = lambda { |*args|
18
18
  require 'test/spec/rdox'
19
19
  Test::Unit::UI::RDox::TestRunner
20
20
  }
@@ -131,11 +131,12 @@ module Test::Spec
131
131
  def _raise(*args, &block)
132
132
  args = [RuntimeError] if args.empty?
133
133
  block ||= @object
134
- assert_raise(*(args + [@message]), &block)
134
+ args << @message if @message
135
+ assert_raise(*args, &block)
135
136
  end
136
137
 
137
- def throw(*args)
138
- assert_throws(*(args + [@message]), &@object)
138
+ def throw(sym)
139
+ assert_throws(sym, @message, &@object)
139
140
  end
140
141
 
141
142
  def nil
@@ -244,7 +245,8 @@ module Test::Spec
244
245
 
245
246
  def _raise(*args, &block)
246
247
  block ||= @object
247
- assert_nothing_raised(*(args+[@message]), &block)
248
+ args << @message if @message
249
+ assert_nothing_raised(*args, &block)
248
250
  end
249
251
 
250
252
  def throw
@@ -23,6 +23,7 @@ module Test::Unit::UI # :nodoc:
23
23
  end
24
24
 
25
25
  def started(result)
26
+ @io ||= @output
26
27
  @result = result
27
28
  @context = nil
28
29
  @contexts = []
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Test
4
4
  module Spec
5
- VERSION = "0.9"
5
+ VERSION = "0.10"
6
6
  end
7
7
  end
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Neukirchen
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-02 00:00:00 +02:00
12
+ date: 2009-02-01 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  requirements: []
69
69
 
70
70
  rubyforge_project: test-spec
71
- rubygems_version: 1.0.1
71
+ rubygems_version: 1.3.1
72
72
  signing_key:
73
73
  specification_version: 2
74
74
  summary: a Behaviour Driven Development interface for Test::Unit