Class: Cowboycoded::TestGroupGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Cowboycoded::TestGroupGenerator
- Defined in:
- lib/generators/cowboycoded/test_group/test_group_generator.rb
Constant Summary collapse
- TEMPLATES_DIR =
File.join(File.dirname(__FILE__), 'templates')
Instance Method Summary collapse
Instance Method Details
#testing_generator ⇒ Object
9 10 11 12 |
# File 'lib/generators/cowboycoded/test_group/test_group_generator.rb', line 9 def testing_generator gemfile_content = IO.read("#{TEMPLATES_DIR}/Gemfile") append_file("Gemfile", "\n\n#{gemfile_content}") end |