public
Description: Behaviour Driven Development framework for Ruby
Homepage: http://rspec.info
Clone URL: git://github.com/dchelimsky/rspec.git
Click here to lend your support to: rspec and make a donation at www.pledgie.com !
Fixing misleading example groups where include was not resolving to module 
include as expected. The include was not needed so it was removed. [#621 
state:resolved]
Joseph Wilk (author)
Wed Dec 03 07:52:10 -0800 2008
dchelimsky (committer)
Wed Dec 03 08:57:05 -0800 2008
commit  2886d9eb1a343a5f5ceb1aba7787b6daa42fc7eb
tree    a6431771b0fb65443768ab3ed8f19116a2499473
parent  83638f2b72b1b682904ca91bab040224520c792e
...
4
5
6
7
8
9
10
11
12
13
14
15
16
17
...
20
21
22
23
24
25
26
...
31
32
33
34
35
36
37
...
40
41
42
43
 
44
45
46
47
48
...
53
54
55
56
 
57
58
59
60
61
...
4
5
6
 
7
8
9
10
11
12
 
13
14
15
...
18
19
20
 
21
22
23
...
28
29
30
 
31
32
33
...
36
37
38
 
39
40
 
41
42
43
...
48
49
50
 
51
52
 
53
54
55
0
@@ -4,14 +4,12 @@ module Spec
0
       
0
       it 'should raise an ExamplePendingError if no block is supplied' do
0
         lambda {
0
-          include Pending
0
           pending "TODO"
0
         }.should raise_error(ExamplePendingError, /TODO/)
0
       end
0
       
0
       it 'should raise an ExamplePendingError if a supplied block fails as expected' do
0
         lambda {
0
-          include Pending
0
           pending "TODO" do
0
             raise "oops"
0
           end
0
@@ -20,7 +18,6 @@ module Spec
0
       
0
       it 'should raise an ExamplePendingError if a supplied block fails as expected with a mock' do
0
         lambda {
0
-          include Pending
0
           pending "TODO" do
0
             m = mock('thing')
0
             m.should_receive(:foo)
0
@@ -31,7 +28,6 @@ module Spec
0
       
0
       it 'should raise a PendingExampleFixedError if a supplied block starts working' do
0
         lambda {
0
-          include Pending
0
           pending "TODO" do
0
             # success!
0
           end
0
@@ -40,9 +36,8 @@ module Spec
0
       
0
       it "should have the correct file and line number for pending given with a block which fails" do
0
         file = __FILE__
0
-        line_number = __LINE__ + 3
0
+        line_number = __LINE__ + 2
0
         begin
0
-          include Pending
0
           pending do
0
             raise
0
           end
0
@@ -53,9 +48,8 @@ module Spec
0
       
0
       it "should have the correct file and line number for pending given with no block" do
0
         file = __FILE__
0
-        line_number = __LINE__ + 3
0
+        line_number = __LINE__ + 2
0
         begin
0
-          include Pending
0
           pending("TODO")
0
         rescue => error
0
           error.pending_caller.should == "#{file}:#{line_number}"

Comments