Permalink
Browse files

build fix: railties tests used deprecated `SchemaCache` methods.

  • Loading branch information...
1 parent 8ee599e commit f45718df3dddb74f6b7fd7f7ab5a3c858e2b423d @senny senny committed Jul 4, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/test/application/initializers/frameworks_test.rb
@@ -182,7 +182,7 @@ def from_bar_helper
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 @@ def from_bar_helper
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

0 comments on commit f45718d

Please sign in to comment.