"generates" applies to "collection radio" so it should be singular
I accidentally pushed this change to docrails before realizing that it's technically a code change, so I'm opening this pull request (and rolling back my change to docrails).
This commit is contained in:
parent
6827451640
commit
87fe7e9b16
@ -17,14 +17,14 @@ def with_collection_check_boxes(*args, &block)
|
||||
end
|
||||
|
||||
# COLLECTION RADIO BUTTONS
|
||||
test 'collection radio accepts a collection and generate inputs from value method' do
|
||||
test 'collection radio accepts a collection and generates inputs from value method' do
|
||||
with_collection_radio_buttons :user, :active, [true, false], :to_s, :to_s
|
||||
|
||||
assert_select 'input[type=radio][value=true]#user_active_true'
|
||||
assert_select 'input[type=radio][value=false]#user_active_false'
|
||||
end
|
||||
|
||||
test 'collection radio accepts a collection and generate inputs from label method' do
|
||||
test 'collection radio accepts a collection and generates inputs from label method' do
|
||||
with_collection_radio_buttons :user, :active, [true, false], :to_s, :to_s
|
||||
|
||||
assert_select 'label[for=user_active_true]', 'true'
|
||||
|
Loading…
Reference in New Issue
Block a user