We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5d52af commit 9b50fd4Copy full SHA for 9b50fd4
lib/rspec/rails/view_spec_methods.rb
@@ -9,7 +9,7 @@ module ViewSpecMethods
9
# When class is `::ActionView::TestCase::TestController`, these methods
10
# are exposed in view specs on the `controller` object.
11
def add_to(klass)
12
- return if klass.instance_methods.include?(:extra_params) && klass.instance_methods.include?(:extra_params=)
+ return if klass.instance_methods.include?("extra_params") && klass.instance_methods.include?("extra_params=")
13
14
klass.module_exec do
15
# Set any extra parameters that rendering a URL for this view
0 commit comments