Merge pull request #12143 from rajcybage/fixing_typos
fix actionview and activemodel test cases typos
This commit is contained in:
commit
3b35103793
@ -194,7 +194,7 @@ def with_collection_check_boxes(*args, &block)
|
||||
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 @@ def @contact.as_json(options); { name: name, created_at: created_at }; end
|
||||
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 New Issue
Block a user