Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix meaningless test case

Module#instance_methods returns an Array of Symbols in Ruby >= 1.9
So this was not actually testing anything
  • Loading branch information...
commit 24889666c7eee345f88a588108f38e6d5fe25482 1 parent 870310d
@amatsuda amatsuda authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/test/template/form_helper_test.rb
View
2  actionpack/test/template/form_helper_test.rb
@@ -2363,7 +2363,7 @@ def test_fields_for_object_with_bracketed_name_and_index
end
def test_form_builder_does_not_have_form_for_method
- assert ! ActionView::Helpers::FormBuilder.instance_methods.include?('form_for')
+ assert !ActionView::Helpers::FormBuilder.instance_methods.include?(:form_for)
end
def test_form_for_and_fields_for
Please sign in to comment.
Something went wrong with that request. Please try again.