Skip to content

Commit 9b50fd4

Browse files
sarahmeiSam Phippen
authored andcommitted
Ruby 1.8.7 must have strings as keys to the #instance_methods. 1.9+ doesn't care.
1 parent e5d52af commit 9b50fd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspec/rails/view_spec_methods.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module ViewSpecMethods
99
# When class is `::ActionView::TestCase::TestController`, these methods
1010
# are exposed in view specs on the `controller` object.
1111
def add_to(klass)
12-
return if klass.instance_methods.include?(:extra_params) && klass.instance_methods.include?(:extra_params=)
12+
return if klass.instance_methods.include?("extra_params") && klass.instance_methods.include?("extra_params=")
1313

1414
klass.module_exec do
1515
# Set any extra parameters that rendering a URL for this view

0 commit comments

Comments
 (0)