diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2014-03-14 20:57:36 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2014-03-16 22:47:35 -0300 |
commit | 1330274657dc59296c556e840a8870dd14bb84ae (patch) | |
tree | 0b4f91fc296f331205d76c9cf8a7f24128bf61c2 /railties/test/application/rake | |
parent | cbc3b89c100faada58c2781f17296ade52a9bf05 (diff) | |
download | rails-1330274657dc59296c556e840a8870dd14bb84ae.tar.gz rails-1330274657dc59296c556e840a8870dd14bb84ae.tar.bz2 rails-1330274657dc59296c556e840a8870dd14bb84ae.zip |
Fix assertions
Diffstat (limited to 'railties/test/application/rake')
-rw-r--r-- | railties/test/application/rake/dbs_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/application/rake/dbs_test.rb b/railties/test/application/rake/dbs_test.rb index 35d9c31c1e..6bf49f3d67 100644 --- a/railties/test/application/rake/dbs_test.rb +++ b/railties/test/application/rake/dbs_test.rb @@ -132,7 +132,7 @@ module ApplicationTests ActiveRecord::Base.connection_config[:database]) require "#{app_path}/app/models/book" #if structure is not loaded correctly, exception would be raised - assert Book.count, 0 + assert_equal 0, Book.count end end @@ -157,7 +157,7 @@ module ApplicationTests ActiveRecord::Base.establish_connection :test require "#{app_path}/app/models/book" #if structure is not loaded correctly, exception would be raised - assert Book.count, 0 + assert_equal 0, Book.count assert_match(/#{ActiveRecord::Base.configurations['test']['database']}/, ActiveRecord::Base.connection_config[:database]) end |