Browse files

Merge pull request #12143 from rajcybage/fixing_typos

fix actionview and activemodel test cases typos
  • Loading branch information...
1 parent 79ffe9c commit 116de9729da919382548d970a0bddfb2d6fa27e9 @carlosantoniodasilva carlosantoniodasilva committed Sep 5, 2013
View
2 actionpack/test/template/form_collections_helper_test.rb
@@ -186,7 +186,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
@@ -204,7 +204,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 116de97

Please sign in to comment.