mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fix actionview and activemodel test cases typos
This commit is contained in:
parent
dfd7454683
commit
e21a18bed0
2 changed files with 2 additions and 2 deletions
|
@ -194,7 +194,7 @@ class FormCollectionsHelperTest < ActionView::TestCase
|
|||
assert_select 'label[for=user_active_no]', 'No'
|
||||
end
|
||||
|
||||
test 'colection check box should sanitize collection values for labels correctly' do
|
||||
test 'collection check box should sanitize collection values for labels correctly' do
|
||||
with_collection_check_boxes :user, :name, ['$0.99', '$1.99'], :to_s, :to_s
|
||||
assert_select 'label[for=user_name_099]', '$0.99'
|
||||
assert_select 'label[for=user_name_199]', '$1.99'
|
||||
|
|
|
@ -198,7 +198,7 @@ class JsonSerializationTest < ActiveModel::TestCase
|
|||
assert_no_match %r{"preferences":}, json
|
||||
end
|
||||
|
||||
test "custom as_json options should be extendible" do
|
||||
test "custom as_json options should be extensible" do
|
||||
def @contact.as_json(options = {}); super(options.merge(only: [:name])); end
|
||||
json = @contact.to_json
|
||||
|
||||
|
|
Loading…
Reference in a new issue