diff options
author | AvnerCohen <israbirding@gmail.com> | 2012-10-10 10:54:31 +0200 |
---|---|---|
committer | AvnerCohen <israbirding@gmail.com> | 2012-10-10 10:54:31 +0200 |
commit | 4c6f75c86608d331b443eec266e2561bc9b4286a (patch) | |
tree | 5b813614549e7d62c77c3975dccb11d7faf6e32b /activerecord/test | |
parent | 28fc89323ce5e5d29fb9254a95cce917a88974c2 (diff) | |
download | rails-4c6f75c86608d331b443eec266e2561bc9b4286a.tar.gz rails-4c6f75c86608d331b443eec266e2561bc9b4286a.tar.bz2 rails-4c6f75c86608d331b443eec266e2561bc9b4286a.zip |
gradually moving documentation to new hash syntax
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/nested_attributes_test.rb | 2 | ||||
-rw-r--r-- | activerecord/test/cases/validations/i18n_validation_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/nested_attributes_test.rb b/activerecord/test/cases/nested_attributes_test.rb index 9120083eca..fe9eddbdec 100644 --- a/activerecord/test/cases/nested_attributes_test.rb +++ b/activerecord/test/cases/nested_attributes_test.rb @@ -156,7 +156,7 @@ class TestNestedAttributesInGeneral < ActiveRecord::TestCase end def test_reject_if_with_blank_nested_attributes_id - # When using a select list to choose an existing 'ship' id, with :include_blank => true + # When using a select list to choose an existing 'ship' id, with include_blank: true Pirate.accepts_nested_attributes_for :ship, :reject_if => proc {|attributes| attributes[:id].blank? } pirate = Pirate.new(:catchphrase => "Stop wastin' me time") diff --git a/activerecord/test/cases/validations/i18n_validation_test.rb b/activerecord/test/cases/validations/i18n_validation_test.rb index 15b97c02c8..efa0c9b934 100644 --- a/activerecord/test/cases/validations/i18n_validation_test.rb +++ b/activerecord/test/cases/validations/i18n_validation_test.rb @@ -43,7 +43,7 @@ class I18nValidationTest < ActiveRecord::TestCase [ "given option that is not reserved", {:format => "jpg"}, {:format => "jpg" }] # TODO Add :on case, but below doesn't work, because then the validation isn't run for some reason # even when using .save instead .valid? - # [ "given on condition", {:on => :save}, {}] + # [ "given on condition", {on: :save}, {}] ] # validates_uniqueness_of w/ mocha |