Class: SpinachGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- SpinachGenerator
- Defined in:
- lib/spinach-rails/generators/rails.rb
Instance Method Summary collapse
Instance Method Details
#create_environment_file ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/spinach-rails/generators/rails.rb', line 5 def create_environment_file create_file "features/support/env.rb", <<-FILE ENV['RAILS_ENV'] = 'test' require './config/environment' require 'minitest/spec' # require 'database_cleaner' # DatabaseCleaner.strategy = :truncation # # Spinach.hooks.before_scenario{ DatabaseCleaner.clean } # # Spinach.config.save_and_open_page_on_failure = true FILE end |