Class: Hanamismith::Builders::RSpec::Helper

Inherits:
Rubysmith::Builders::RSpec::Helper
  • Object
show all
Defined in:
lib/hanamismith/builders/rspec/helper.rb

Overview

Builds project skeleton RSpec helper.

Instance Method Summary collapse

Constructor Details

#initializeHelper

Returns a new instance of Helper.



12
13
14
15
16
17
# File 'lib/hanamismith/builders/rspec/helper.rb', line 12

def initialize(...)
  super
  @instance = builder.call configuration.merge(
    template_path: "%project_name%/spec/spec_helper.rb.erb"
  )
end

Instance Method Details

#callObject



19
20
21
22
23
24
25
26
# File 'lib/hanamismith/builders/rspec/helper.rb', line 19

def call
  return configuration unless configuration.build_rspec

  super
  remove_project_requirement
  disable_simple_cov_eval
  configuration
end