1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Check if any sqlite files are not included in the gitignore

If the sqlite file name change in future version we this regexp should
catch
This commit is contained in:
Rafael Mendonça França 2014-03-24 09:24:47 -03:00
parent 9d8354c9d3
commit b9440c36dd

View file

@ -420,7 +420,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
run_generator [destination_root, '--skip-active-record']
assert_file '.gitignore' do |content|
assert_no_match(/sqlite3/, content)
assert_no_match(/sqlite/i, content)
end
end
@ -428,7 +428,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
run_generator([destination_root, "-d", "mysql"])
assert_file '.gitignore' do |content|
assert_no_match(/sqlite3/, content)
assert_no_match(/sqlite/i, content)
end
end