mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fixed assertions with regex used in dbs tests
This commit is contained in:
parent
983b743c8c
commit
324ae559af
1 changed files with 2 additions and 2 deletions
|
@ -29,11 +29,11 @@ module ApplicationTests
|
|||
def db_create_and_drop(expected_database)
|
||||
Dir.chdir(app_path) do
|
||||
output = `bin/rails db:create`
|
||||
assert_match /Created database/, output
|
||||
assert_match(/Created database/, output)
|
||||
assert File.exist?(expected_database)
|
||||
assert_equal expected_database, ActiveRecord::Base.connection_config[:database]
|
||||
output = `bin/rails db:drop`
|
||||
assert_match /Dropped database/, output
|
||||
assert_match(/Dropped database/, output)
|
||||
assert !File.exist?(expected_database)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue