diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-10-20 16:11:59 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-11-19 19:08:56 -0300 |
commit | 93daf1b80984eab80f0da13c2b42ae76b63085e3 (patch) | |
tree | 115da5500d0ed24ebffb4b40abaa7beeb517daf1 /activerecord/test/cases/readonly_test.rb | |
parent | 69b627ef670b1dc7fee0b5d25903cebdeed49576 (diff) | |
download | rails-93daf1b80984eab80f0da13c2b42ae76b63085e3.tar.gz rails-93daf1b80984eab80f0da13c2b42ae76b63085e3.tar.bz2 rails-93daf1b80984eab80f0da13c2b42ae76b63085e3.zip |
Revert "IdentityMap - Adjustments to test cases"
This reverts commit 4db9dca55e3acc2c59f252eb83ecb83db5f4b81b.
Conflicts:
activerecord/test/cases/identity_map_test.rb
Diffstat (limited to 'activerecord/test/cases/readonly_test.rb')
-rw-r--r-- | activerecord/test/cases/readonly_test.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/activerecord/test/cases/readonly_test.rb b/activerecord/test/cases/readonly_test.rb index 448c8f8796..98011f40a4 100644 --- a/activerecord/test/cases/readonly_test.rb +++ b/activerecord/test/cases/readonly_test.rb @@ -40,10 +40,6 @@ class ReadOnlyTest < ActiveRecord::TestCase def test_find_with_joins_option_implies_readonly - # We disable IM, becouse we want to check default settings here - # adding readonly(false) does not update readonly status with IM - # (see corresponding test in IM) - ActiveRecord::IdentityMap.without do # Blank joins don't count. Developer.joins(' ').each { |d| assert !d.readonly? } Developer.joins(' ').readonly(false).each { |d| assert !d.readonly? } @@ -51,7 +47,6 @@ class ReadOnlyTest < ActiveRecord::TestCase # Others do. Developer.joins(', projects').each { |d| assert d.readonly? } Developer.joins(', projects').readonly(false).each { |d| assert !d.readonly? } - end end @@ -77,10 +72,6 @@ class ReadOnlyTest < ActiveRecord::TestCase end def test_readonly_scoping - # We disable IM, becouse we want to check default settings here - # adding readonly(false) does not update readonly status with IM - # (see corresponding test in IM) - ActiveRecord::IdentityMap.without do Post.send(:with_scope, :find => { :conditions => '1=1' }) do assert !Post.find(1).readonly? assert Post.readonly(true).find(1).readonly? @@ -108,7 +99,6 @@ class ReadOnlyTest < ActiveRecord::TestCase assert Post.readonly.find(1).readonly? assert !Post.readonly(false).find(1).readonly? end - end end def test_association_collection_method_missing_scoping_not_readonly |