diff options
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/base_test.rb | 4 | ||||
-rw-r--r-- | activerecord/test/cases/validations/i18n_generate_message_validation_test.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index 65e8ccdbc8..0f859bf452 100644 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -838,7 +838,7 @@ class BasicsTest < ActiveRecord::TestCase g = Geometric.new( :a_point => '(5.0, 6.1)', - #a_line: '((2.0, 3), (5.5, 7.0))' # line type is currently unsupported in postgresql + #:a_line => '((2.0, 3), (5.5, 7.0))' # line type is currently unsupported in postgresql :a_line_segment => '(2.0, 3), (5.5, 7.0)', :a_box => '2.0, 3, 5.5, 7.0', :a_path => '[(2.0, 3), (5.5, 7.0), (8.5, 11.0)]', # [ ] is an open path @@ -867,7 +867,7 @@ class BasicsTest < ActiveRecord::TestCase g = Geometric.new( :a_point => '5.0, 6.1', - #a_line: '((2.0, 3), (5.5, 7.0))' # line type is currently unsupported in postgresql + #:a_line => '((2.0, 3), (5.5, 7.0))' # line type is currently unsupported in postgresql :a_line_segment => '((2.0, 3), (5.5, 7.0))', :a_box => '(2.0, 3), (5.5, 7.0)', :a_path => '((2.0, 3), (5.5, 7.0), (8.5, 11.0))', # ( ) is a closed path diff --git a/activerecord/test/cases/validations/i18n_generate_message_validation_test.rb b/activerecord/test/cases/validations/i18n_generate_message_validation_test.rb index 5af9733a68..174d96aa4e 100644 --- a/activerecord/test/cases/validations/i18n_generate_message_validation_test.rb +++ b/activerecord/test/cases/validations/i18n_generate_message_validation_test.rb @@ -18,7 +18,7 @@ class I18nGenerateMessageValidationTest < ActiveRecord::TestCase I18n.backend = @old_backend end - # validates_associated: generate_message(attr_name, :invalid, message: custom_message, value: value) + # validates_associated: generate_message(attr_name, :invalid, :message => custom_message, :value => value) def test_generate_message_invalid_with_default_message assert_equal 'is invalid', @topic.errors.generate_message(:title, :invalid, :value => 'title') end @@ -27,7 +27,7 @@ class I18nGenerateMessageValidationTest < ActiveRecord::TestCase assert_equal 'custom message title', @topic.errors.generate_message(:title, :invalid, :message => 'custom message %{value}', :value => 'title') end - # validates_uniqueness_of: generate_message(attr_name, :taken, message: custom_message) + # validates_uniqueness_of: generate_message(attr_name, :taken, :message => custom_message) def test_generate_message_taken_with_default_message assert_equal "has already been taken", @topic.errors.generate_message(:title, :taken, :value => 'title') end |