diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-07-04 00:05:57 -0700 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-07-04 00:05:57 -0700 |
commit | c95911023c4e388faf1065ac46cae0e2bb1914eb (patch) | |
tree | a17969704ef5e65d3a678237066fec1abd090352 /activerecord/test | |
parent | b785e921d186753d905c1d0415b91d0987958028 (diff) | |
parent | 50cbc03d18c5984347965a94027879623fc44cce (diff) | |
download | rails-c95911023c4e388faf1065ac46cae0e2bb1914eb.tar.gz rails-c95911023c4e388faf1065ac46cae0e2bb1914eb.tar.bz2 rails-c95911023c4e388faf1065ac46cae0e2bb1914eb.zip |
Merge pull request #11277 from arunagw/deprecation-removed
Deprecation removed
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/scoping/named_scoping_test.rb | 10 | ||||
-rw-r--r-- | activerecord/test/cases/transactions_test.rb | 9 |
2 files changed, 0 insertions, 19 deletions
diff --git a/activerecord/test/cases/scoping/named_scoping_test.rb b/activerecord/test/cases/scoping/named_scoping_test.rb index abd0b8621a..72c9787b84 100644 --- a/activerecord/test/cases/scoping/named_scoping_test.rb +++ b/activerecord/test/cases/scoping/named_scoping_test.rb @@ -435,16 +435,6 @@ class NamedScopingTest < ActiveRecord::TestCase end end - def test_eager_scopes_are_deprecated - klass = Class.new(ActiveRecord::Base) - klass.table_name = 'posts' - - assert_deprecated do - klass.scope :welcome_2, klass.where(:id => posts(:welcome).id) - end - assert_equal [posts(:welcome).title], klass.welcome_2.map(&:title) - end - def test_eager_default_scope_relations_are_remove klass = Class.new(ActiveRecord::Base) klass.table_name = 'posts' diff --git a/activerecord/test/cases/transactions_test.rb b/activerecord/test/cases/transactions_test.rb index f4814f1c42..6ba7464203 100644 --- a/activerecord/test/cases/transactions_test.rb +++ b/activerecord/test/cases/transactions_test.rb @@ -593,14 +593,5 @@ if current_adapter?(:PostgreSQLAdapter) assert_equal original_salary, Developer.find(1).salary end - - test "#transaction_joinable= is deprecated" do - Developer.transaction do - conn = Developer.connection - assert conn.current_transaction.joinable? - assert_deprecated { conn.transaction_joinable = false } - assert !conn.current_transaction.joinable? - end - end end end |