Merge pull request #12143 from rajcybage/fixing_typos

fix actionview and activemodel test cases typos
This commit is contained in:
Carlos Antonio da Silva 2013-09-05 03:32:56 -07:00
commit 3b35103793
2 changed files with 2 additions and 2 deletions

@ -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