Class: Kybus::CLI::Bot::Config::TestHelperGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/kybus/cli/bot/file_providers/test_helper_generator.rb

Instance Method Summary collapse

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

#generateObject



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