Permalink
Browse files

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
  • Loading branch information...
1 parent 9d8354c commit b9440c36dd881ca2643127ba372b2a40e2a4d37b @rafaelfranca rafaelfranca committed Mar 24, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/test/generators/app_generator_test.rb
@@ -420,15 +420,15 @@ def test_gitignore_when_no_active_record
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
def test_gitignore_when_non_sqlite3_db
run_generator([destination_root, "-d", "mysql"])
assert_file '.gitignore' do |content|
- assert_no_match(/sqlite3/, content)
+ assert_no_match(/sqlite/i, content)
end
end

0 comments on commit b9440c3

Please sign in to comment.