From b9440c36dd881ca2643127ba372b2a40e2a4d37b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Mon, 24 Mar 2014 09:24:47 -0300 Subject: 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 --- railties/test/generators/app_generator_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties/test/generators') 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 -- cgit v1.2.3