rspec 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +4 -0
- data/lib/spec/runner/context.rb +5 -1
- data/lib/spec/version.rb +3 -3
- data/spec/spec/runner/context_spec.rb +13 -13
- metadata +4 -5
- data/TODO.0.8.0 +0 -5
data/CHANGES
CHANGED
data/lib/spec/runner/context.rb
CHANGED
@@ -17,10 +17,14 @@ module Spec
|
|
17
17
|
def before_context_eval
|
18
18
|
end
|
19
19
|
|
20
|
-
#this is here for Spec::Rails
|
21
20
|
def inherit_context_eval_module_from(klass)
|
22
21
|
@context_eval_module.inherit klass
|
23
22
|
end
|
23
|
+
alias :inherit :inherit_context_eval_module_from
|
24
|
+
|
25
|
+
def include(mod)
|
26
|
+
@context_eval_module.include(mod)
|
27
|
+
end
|
24
28
|
|
25
29
|
def run(reporter, dry_run=false)
|
26
30
|
reporter.add_context(@description)
|
data/lib/spec/version.rb
CHANGED
@@ -11,11 +11,11 @@ module Spec
|
|
11
11
|
unless defined? MAJOR
|
12
12
|
MAJOR = 0
|
13
13
|
MINOR = 8
|
14
|
-
TINY =
|
14
|
+
TINY = 1
|
15
15
|
# RELEASE_CANDIDATE = "RC1"
|
16
16
|
|
17
|
-
# RANDOM_TOKEN: 0.
|
18
|
-
REV = "$LastChangedRevision:
|
17
|
+
# RANDOM_TOKEN: 0.749142077161729
|
18
|
+
REV = "$LastChangedRevision: 1553 $".match(/LastChangedRevision: (\d+)/)[1]
|
19
19
|
|
20
20
|
STRING = [MAJOR, MINOR, TINY].join('.')
|
21
21
|
FULL_VERSION = "#{STRING} (r#{REV})"
|
@@ -128,7 +128,7 @@ module Spec
|
|
128
128
|
super_class_context_setup_run_count += 1
|
129
129
|
end
|
130
130
|
end
|
131
|
-
# using @context.inherit_context_eval_module_from here, but other examples use @
|
131
|
+
# using @context.inherit_context_eval_module_from here, but other examples use @context.inherit
|
132
132
|
# - inherit_context_eval_module_from is used by Spec::Rails to avoid confusion with Ruby's #include method
|
133
133
|
@context.inherit_context_eval_module_from super_class
|
134
134
|
|
@@ -152,7 +152,7 @@ module Spec
|
|
152
152
|
super_class_setup_ran = true
|
153
153
|
end
|
154
154
|
end
|
155
|
-
@
|
155
|
+
@context.inherit super_class
|
156
156
|
|
157
157
|
setup_ran = false
|
158
158
|
@context_eval.setup {setup_ran = true}
|
@@ -174,7 +174,7 @@ module Spec
|
|
174
174
|
super_class_context_teardown_run_count += 1
|
175
175
|
end
|
176
176
|
end
|
177
|
-
@
|
177
|
+
@context.inherit super_class
|
178
178
|
|
179
179
|
context_teardown_run_count = 0
|
180
180
|
@context_eval.context_teardown {context_teardown_run_count += 1}
|
@@ -224,7 +224,7 @@ module Spec
|
|
224
224
|
fiddle << "superclass setup"
|
225
225
|
end
|
226
226
|
end
|
227
|
-
@
|
227
|
+
@context.inherit super_class
|
228
228
|
|
229
229
|
@context_eval.context_setup { fiddle << "context_setup" }
|
230
230
|
@context_eval.setup { fiddle << "setup" }
|
@@ -245,7 +245,7 @@ module Spec
|
|
245
245
|
fiddle << "superclass teardown"
|
246
246
|
end
|
247
247
|
end
|
248
|
-
@
|
248
|
+
@context.inherit super_class
|
249
249
|
|
250
250
|
@context_eval.context_teardown { fiddle << "context_teardown" }
|
251
251
|
@context_eval.teardown { fiddle << "teardown" }
|
@@ -267,7 +267,7 @@ module Spec
|
|
267
267
|
super_class_teardown_ran = true
|
268
268
|
end
|
269
269
|
end
|
270
|
-
@
|
270
|
+
@context.inherit super_class
|
271
271
|
|
272
272
|
teardown_ran = false
|
273
273
|
@context_eval.teardown {teardown_ran = true}
|
@@ -289,7 +289,7 @@ module Spec
|
|
289
289
|
helper_method_ran = true
|
290
290
|
end
|
291
291
|
end
|
292
|
-
@
|
292
|
+
@context.inherit super_class
|
293
293
|
|
294
294
|
@context_eval.specify("test") {helper_method}
|
295
295
|
@context.run(@formatter)
|
@@ -304,7 +304,7 @@ module Spec
|
|
304
304
|
class_method_ran = true
|
305
305
|
end
|
306
306
|
end
|
307
|
-
@
|
307
|
+
@context.inherit super_class
|
308
308
|
@context.class_method
|
309
309
|
class_method_ran.should be_true
|
310
310
|
|
@@ -317,7 +317,7 @@ module Spec
|
|
317
317
|
class << super_class
|
318
318
|
def super_class_class_method; end
|
319
319
|
end
|
320
|
-
@
|
320
|
+
@context.inherit super_class
|
321
321
|
|
322
322
|
@context.methods.should_include("super_class_class_method")
|
323
323
|
end
|
@@ -341,8 +341,8 @@ module Spec
|
|
341
341
|
end
|
342
342
|
end
|
343
343
|
|
344
|
-
@
|
345
|
-
@
|
344
|
+
@context.include mod1
|
345
|
+
@context.include mod2
|
346
346
|
|
347
347
|
@context_eval.specify("test") do
|
348
348
|
mod1_method
|
@@ -384,8 +384,8 @@ module Spec
|
|
384
384
|
end
|
385
385
|
end
|
386
386
|
|
387
|
-
@
|
388
|
-
@
|
387
|
+
@context.include mod1
|
388
|
+
@context.include mod2
|
389
389
|
|
390
390
|
@context_eval.mod1_method
|
391
391
|
@context_eval.mod2_method
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.
|
2
|
+
rubygems_version: 0.9.2
|
3
3
|
specification_version: 1
|
4
4
|
name: rspec
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.8.
|
7
|
-
date: 2007-02-28 00:00:00
|
8
|
-
summary: RSpec-0.8.
|
6
|
+
version: 0.8.1
|
7
|
+
date: 2007-02-28 00:00:00 -06:00
|
8
|
+
summary: RSpec-0.8.1 (r1553) - BDD for Ruby http://rspec.rubyforge.org/
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
11
|
email: rspec-devel@rubyforge.org
|
@@ -35,7 +35,6 @@ files:
|
|
35
35
|
- Rakefile
|
36
36
|
- README
|
37
37
|
- RELEASE-PLAN
|
38
|
-
- TODO.0.8.0
|
39
38
|
- lib/spec.rb
|
40
39
|
- lib/spec/callback.rb
|
41
40
|
- lib/spec/deprecated.rb
|