diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-07-04 11:16:04 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-07-04 11:16:04 +0200 |
commit | f45718df3dddb74f6b7fd7f7ab5a3c858e2b423d (patch) | |
tree | 785e27449f990d6072fd7320cb31d06c7ad4952d /railties/test/application | |
parent | 8ee599ea86bd7fc565e15d2a1f69e50dd03ead82 (diff) | |
download | rails-f45718df3dddb74f6b7fd7f7ab5a3c858e2b423d.tar.gz rails-f45718df3dddb74f6b7fd7f7ab5a3c858e2b423d.tar.bz2 rails-f45718df3dddb74f6b7fd7f7ab5a3c858e2b423d.zip |
build fix: railties tests used deprecated `SchemaCache` methods.
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/initializers/frameworks_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/application/initializers/frameworks_test.rb b/railties/test/application/initializers/frameworks_test.rb index 33659db927..83104acf3c 100644 --- a/railties/test/application/initializers/frameworks_test.rb +++ b/railties/test/application/initializers/frameworks_test.rb @@ -182,7 +182,7 @@ module ApplicationTests end require "#{app_path}/config/environment" ActiveRecord::Base.connection.drop_table("posts") # force drop posts table for test. - assert ActiveRecord::Base.connection.schema_cache.tables["posts"] + assert ActiveRecord::Base.connection.schema_cache.tables("posts") end test "expire schema cache dump" do @@ -192,7 +192,7 @@ module ApplicationTests end silence_warnings { require "#{app_path}/config/environment" - assert !ActiveRecord::Base.connection.schema_cache.tables["posts"] + assert !ActiveRecord::Base.connection.schema_cache.tables("posts") } end |