Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use user object with name attribute to be consistent with other tests

  • Loading branch information...
commit db05df72d4dc44a490da01acd06c9e8b4a7bf987 1 parent ed4c30c
@nashby nashby authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/form_builder/general_test.rb
View
4 test/form_builder/general_test.rb
@@ -238,8 +238,8 @@ def with_custom_form_for(object, *args, &block)
end
test 'builder should be able to disable the label for an input and return a html safe string' do
- with_form_for @validating_user, :age, :label => false, :wrapper => custom_wrapper_with_wrapped_label_input
- assert_select 'form input[type=text]'
+ with_form_for @user, :name, :label => false, :wrapper => custom_wrapper_with_wrapped_label_input
+ assert_select 'form input#user_name'
end
test 'builder should use custom label' do
Please sign in to comment.
Something went wrong with that request. Please try again.