Browse files

Merge pull request #12143 from rajcybage/fixing_typos

fix actionview and activemodel test cases typos
  • Loading branch information...
2 parents 7043307 + e21a18b commit 3b351037937199d6dcb95c0db2ed9519f660e353 @carlosantoniodasilva carlosantoniodasilva committed Sep 5, 2013
View
2 actionview/test/template/form_collections_helper_test.rb
@@ -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'
View
2 activemodel/test/cases/serializers/json_serialization_test.rb
@@ -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

0 comments on commit 3b35103

Please sign in to comment.