aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/rake
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-03-20 08:19:33 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-03-20 08:19:33 -0300
commit66dc5762178dc2cf23349fd7de4bb3f97f9359ec (patch)
tree34c9cae4bf0f0d46d0757c49225ebb74c6010213 /railties/test/application/rake
parentbebe4a9ddde078c091e48ab06c4ca4c8da37203f (diff)
downloadrails-66dc5762178dc2cf23349fd7de4bb3f97f9359ec.tar.gz
rails-66dc5762178dc2cf23349fd7de4bb3f97f9359ec.tar.bz2
rails-66dc5762178dc2cf23349fd7de4bb3f97f9359ec.zip
Check if the output is empty rather than asserting for equality
Also fix indent of test block.
Diffstat (limited to 'railties/test/application/rake')
-rw-r--r--railties/test/application/rake/dbs_test.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/railties/test/application/rake/dbs_test.rb b/railties/test/application/rake/dbs_test.rb
index 6bf49f3d67..7cc4ea0ce1 100644
--- a/railties/test/application/rake/dbs_test.rb
+++ b/railties/test/application/rake/dbs_test.rb
@@ -33,12 +33,11 @@ module ApplicationTests
def db_create_and_drop
Dir.chdir(app_path) do
output = `bundle exec rake db:create`
- assert_equal output, ""
+ assert_empty output
assert File.exist?(expected[:database])
- assert_equal expected[:database],
- ActiveRecord::Base.connection_config[:database]
+ assert_equal expected[:database], ActiveRecord::Base.connection_config[:database]
output = `bundle exec rake db:drop`
- assert_equal output, ""
+ assert_empty output
assert !File.exist?(expected[:database])
end
end
@@ -47,7 +46,7 @@ module ApplicationTests
require "#{app_path}/config/environment"
expected[:database] = ActiveRecord::Base.configurations[Rails.env]['database']
db_create_and_drop
- end
+ end
test 'db:create and db:drop with database url' do
require "#{app_path}/config/environment"