aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/has_many_associations_test.rb
diff options
context:
space:
mode:
authorManoj <manoj.mk27@gmail.com>2012-02-01 23:55:01 +0530
committerManoj <manoj.mk27@gmail.com>2012-02-01 23:58:20 +0530
commit907d19343ebe2f0807337e0fda83b23076f87383 (patch)
treeb7c989d3754933a83fa8f7f9576ae09c71357a14 /activerecord/test/cases/associations/has_many_associations_test.rb
parent049dc500b632ca1a05d41a0c5454946f24d15035 (diff)
downloadrails-907d19343ebe2f0807337e0fda83b23076f87383.tar.gz
rails-907d19343ebe2f0807337e0fda83b23076f87383.tar.bz2
rails-907d19343ebe2f0807337e0fda83b23076f87383.zip
fix has_one, has_many restrict error message
Diffstat (limited to 'activerecord/test/cases/associations/has_many_associations_test.rb')
-rw-r--r--activerecord/test/cases/associations/has_many_associations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_many_associations_test.rb b/activerecord/test/cases/associations/has_many_associations_test.rb
index ab1e821aab..f2af892840 100644
--- a/activerecord/test/cases/associations/has_many_associations_test.rb
+++ b/activerecord/test/cases/associations/has_many_associations_test.rb
@@ -1171,7 +1171,7 @@ class HasManyAssociationsTest < ActiveRecord::TestCase
assert !firm.errors.empty?
- assert_equal "Cannot delete record because dependent company exists", firm.errors[:base].first
+ assert_equal "Cannot delete record because dependent companies exist", firm.errors[:base].first
assert RestrictedFirm.exists?(:name => 'restrict')
assert firm.companies.exists?(:name => 'child')
ensure