Fix invalid selectors
This commit is contained in:
parent
1b376bcebb
commit
341803e94f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue