Skip to content

Commit

Permalink
Fix view specs on Rails 6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Oct 16, 2020
1 parent a43a8fd commit 1d5c121
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/rspec/rails/example/view_example_group_spec.rb
Expand Up @@ -13,6 +13,7 @@ module ::Namespaced; module ThingsHelper; end; end
group = RSpec::Core::ExampleGroup.describe('things/show.html.erb') do
def self.helper(*); end # Stub method
end
allow(group).to receive(:helper)
expect(group).to receive(:helper).with(ThingsHelper)
group.class_exec do
include ViewExampleGroup
Expand All @@ -23,6 +24,7 @@ def self.helper(*); end # Stub method
group = RSpec::Core::ExampleGroup.describe('namespaced/things/show.html.erb') do
def self.helper(*); end # Stub method
end
allow(group).to receive(:helper)
expect(group).to receive(:helper).with(Namespaced::ThingsHelper)
group.class_exec do
include ViewExampleGroup
Expand Down Expand Up @@ -66,6 +68,7 @@ module ::ApplicationHelper; end
group = RSpec::Core::ExampleGroup.describe('bars/new.html.erb') do
def self.helper(*); end # Stub method
end
allow(group).to receive(:helper)
expect(group).to receive(:helper).with(ApplicationHelper)
group.class_exec do
include ViewExampleGroup
Expand Down

0 comments on commit 1d5c121

Please sign in to comment.