lib/generators/cucumber/install/install_generator.rb in cucumber-rails-1.4.2 vs lib/generators/cucumber/install/install_generator.rb in cucumber-rails-1.4.3

- old
+ new

@@ -39,10 +39,10 @@ def create_database return unless File.exist?('config/database.yml') unless File.read('config/database.yml').include? 'cucumber:' gsub_file 'config/database.yml', /^test:.*\n/, "test: &test\n" - gsub_file 'config/database.yml', /\z/, "\ncucumber:\n <<: *test" + gsub_file 'config/database.yml', /\z/, "\ncucumber:\n <<: *test\n" # Since gsub_file doesn't ask the user, just inform user that the file was overwritten. puts ' force config/database.yml' end end