diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-03-24 09:24:47 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-03-24 09:24:47 -0300 |
commit | b9440c36dd881ca2643127ba372b2a40e2a4d37b (patch) | |
tree | b4992b6f2921be498207b54ca18aedfb86549833 /railties/test/generators | |
parent | 9d8354c9d3858844294a9d963e32e66591e34e25 (diff) | |
download | rails-b9440c36dd881ca2643127ba372b2a40e2a4d37b.tar.gz rails-b9440c36dd881ca2643127ba372b2a40e2a4d37b.tar.bz2 rails-b9440c36dd881ca2643127ba372b2a40e2a4d37b.zip |
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
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 48b40d39e4..8e1aeddb2b 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -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 |