Fix invalid selectors

This commit is contained in:
Rafael Mendonça França 2014-09-08 18:14:53 -03:00
parent 1b376bcebb
commit 341803e94f
2 changed files with 2 additions and 2 deletions

View File

@ -271,7 +271,7 @@ class BuilderTest < ActionView::TestCase
collection = [Tag.new(1, 'Tag 1'), Tag.new(2, 'Tag 2')]
with_collection_check_boxes @user, :tag_ids, collection, :id, :name
assert_select 'form input[type=hidden][name="user[tag_ids][]"][value=""]', count: 1
assert_select "form input[type=hidden][name='user[tag_ids][]'][value='']", count: 1
end
test "collection check box accepts a collection and generate a serie of checkboxes with labels for label method" do

View File

@ -4,7 +4,7 @@ require 'test_helper'
class StringInputTest < ActionView::TestCase
test 'input maps text field to string attribute' do
with_input_for @user, :name, :string
assert_select 'input#user_name[type=text][name="user[name]"][value="New in SimpleForm!"]'
assert_select "input#user_name[type=text][name='user[name]'][value='New in SimpleForm!']"
end
test 'input generates a password field for password attributes' do