File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ def include(mod)
51
51
end
52
52
53
53
def extend ( mod )
54
- @modules << ModuleExtendsion . new ( mod )
54
+ @modules << ModuleExtension . new ( mod )
55
55
end
56
56
57
57
def perform_steps ( name )
Original file line number Diff line number Diff line change 19
19
end
20
20
end
21
21
22
+ it "should handle inclusion and extension with modules" do
23
+ module Testing
24
+ def something
25
+ 42
26
+ end
27
+ end
28
+
29
+ group = nil
30
+ sandboxed do
31
+ group = RSpec . steps "Test Steps" do
32
+ include Testing
33
+ extend Testing
34
+
35
+ it ( "accesses a method from a module" ) { expect ( something ) . to eq 42 }
36
+ end
37
+ group . run
38
+ end
39
+
40
+ group . examples . each do |example |
41
+ expect ( example . metadata [ :execution_result ] . status ) . to eq ( :passed )
42
+ end
43
+ end
44
+
22
45
it "should define let blocks correctly" do
23
46
group = nil
24
47
sandboxed do
You can’t perform that action at this time.
0 commit comments