diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-10-13 12:09:12 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-10-13 12:09:12 -0700 |
commit | 0b2884a8ae6891f6507303b487dc3deff4fb0852 (patch) | |
tree | 64cbaec98fca4da4a53b3752ef711cafed1328af /activerecord/test/cases/transactions_test.rb | |
parent | c56dc753b400cf73cc8d3284a0ae3a7bb5e72aa1 (diff) | |
parent | 0aeb11e5751c5c998f4d52b0084754d848e2865e (diff) | |
download | rails-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.rb | 4 |
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' |