Skip to content
This repository
Browse code

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
Akira Matsuda authored June 05, 2012
2  actionpack/test/template/form_helper_test.rb
@@ -2363,7 +2363,7 @@ def test_fields_for_object_with_bracketed_name_and_index
2363 2363
   end
2364 2364
 
2365 2365
   def test_form_builder_does_not_have_form_for_method
2366  
-    assert ! ActionView::Helpers::FormBuilder.instance_methods.include?('form_for')
  2366
+    assert !ActionView::Helpers::FormBuilder.instance_methods.include?(:form_for)
2367 2367
   end
2368 2368
 
2369 2369
   def test_form_for_and_fields_for

0 notes on commit 2488966

Please sign in to comment.
Something went wrong with that request. Please try again.