Class: Kybus::CLI::Bot::Config::TestHelperGenerator
- Inherits:
-
Object
- Object
- Kybus::CLI::Bot::Config::TestHelperGenerator
- Defined in:
- lib/kybus/cli/bot/file_providers/test_helper_generator.rb
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(name, with_simplecov) ⇒ TestHelperGenerator
constructor
A new instance of TestHelperGenerator.
Constructor Details
#initialize(name, with_simplecov) ⇒ TestHelperGenerator
Returns a new instance of TestHelperGenerator.
8 9 10 11 |
# File 'lib/kybus/cli/bot/file_providers/test_helper_generator.rb', line 8 def initialize(name, with_simplecov) @file_writer = Kybus::CLI::FileWriter.new(name) @with_simplecov = with_simplecov end |
Instance Method Details
#generate ⇒ Object
13 14 15 |
# File 'lib/kybus/cli/bot/file_providers/test_helper_generator.rb', line 13 def generate @file_writer.write('test/test_helper.rb', test_helper_rb_content) end |