1
0
Fork 0
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:
Rajarshi Das 2013-09-05 14:21:57 +05:30
parent dfd7454683
commit e21a18bed0
2 changed files with 2 additions and 2 deletions

View file

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

View file

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