Class: EffectiveTestBot::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/effective_test_bot/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject



10
11
12
# File 'lib/generators/effective_test_bot/install_generator.rb', line 10

def copy_initializer
  template ('../' * 3) +  'config/effective_test_bot.rb', 'config/initializers/effective_test_bot.rb'
end

#copy_test_helperObject



14
15
16
17
# File 'lib/generators/effective_test_bot/install_generator.rb', line 14

def copy_test_helper
  template ('../' * 3) +  'config/test_helper.rb', 'test/test_helper.rb'
  template ('../' * 3) +  'config/application_system_test_case.rb', 'test/application_system_test_case.rb'
end

#thank_youObject



19
20
21
22
23
24
# File 'lib/generators/effective_test_bot/install_generator.rb', line 19

def thank_you
  puts "Thanks for using EffectiveTestBot"
  puts "Make sure you create a user in your db/seeds.rb, test/fixtures/users.yml, or test/fixtures/seeds.rb"
  puts "Run `rails test:bot:environment` once to ensure the testing environment is correctly configured"
  puts "Test your app with 'rails test:bot'"
end