aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/transactions_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-10-13 12:09:12 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-10-13 12:09:12 -0700
commit0b2884a8ae6891f6507303b487dc3deff4fb0852 (patch)
tree64cbaec98fca4da4a53b3752ef711cafed1328af /activerecord/test/cases/transactions_test.rb
parentc56dc753b400cf73cc8d3284a0ae3a7bb5e72aa1 (diff)
parent0aeb11e5751c5c998f4d52b0084754d848e2865e (diff)
downloadrails-0b2884a8ae6891f6507303b487dc3deff4fb0852.tar.gz
rails-0b2884a8ae6891f6507303b487dc3deff4fb0852.tar.bz2
rails-0b2884a8ae6891f6507303b487dc3deff4fb0852.zip
Merge pull request #12456 from razielgn/ar-test-fixes
Fixed MRI dependent stuff in AR tests
Diffstat (limited to 'activerecord/test/cases/transactions_test.rb')
-rw-r--r--activerecord/test/cases/transactions_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/test/cases/transactions_test.rb b/activerecord/test/cases/transactions_test.rb
index 17206ffe99..980981903a 100644
--- a/activerecord/test/cases/transactions_test.rb
+++ b/activerecord/test/cases/transactions_test.rb
@@ -421,7 +421,9 @@ class TransactionTest < ActiveRecord::TestCase
topic = Topic.new(:title => 'test')
topic.freeze
e = assert_raise(RuntimeError) { topic.save }
- assert_equal "can't modify frozen Hash", e.message
+ assert_match(/frozen/i, e.message) # Not good enough, but we can't do much
+ # about it since there is no specific error
+ # for frozen objects.
assert !topic.persisted?, 'not persisted'
assert_nil topic.id
assert topic.frozen?, 'not frozen'