File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ module ::Namespaced; module ThingsHelper; end; end
13
13
group = RSpec ::Core ::ExampleGroup . describe ( 'things/show.html.erb' ) do
14
14
def self . helper ( *) ; end # Stub method
15
15
end
16
+ allow ( group ) . to receive ( :helper )
16
17
expect ( group ) . to receive ( :helper ) . with ( ThingsHelper )
17
18
group . class_exec do
18
19
include ViewExampleGroup
@@ -23,6 +24,7 @@ def self.helper(*); end # Stub method
23
24
group = RSpec ::Core ::ExampleGroup . describe ( 'namespaced/things/show.html.erb' ) do
24
25
def self . helper ( *) ; end # Stub method
25
26
end
27
+ allow ( group ) . to receive ( :helper )
26
28
expect ( group ) . to receive ( :helper ) . with ( Namespaced ::ThingsHelper )
27
29
group . class_exec do
28
30
include ViewExampleGroup
@@ -66,6 +68,7 @@ module ::ApplicationHelper; end
66
68
group = RSpec ::Core ::ExampleGroup . describe ( 'bars/new.html.erb' ) do
67
69
def self . helper ( *) ; end # Stub method
68
70
end
71
+ allow ( group ) . to receive ( :helper )
69
72
expect ( group ) . to receive ( :helper ) . with ( ApplicationHelper )
70
73
group . class_exec do
71
74
include ViewExampleGroup
You can’t perform that action at this time.
0 commit comments