Class: Hanamismith::Builders::RSpec::Helper
- Inherits:
-
Rubysmith::Builders::RSpec::Helper
- Object
- Rubysmith::Builders::RSpec::Helper
- Hanamismith::Builders::RSpec::Helper
- Defined in:
- lib/hanamismith/builders/rspec/helper.rb
Overview
Builds project skeleton RSpec helper.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize ⇒ Helper
constructor
A new instance of Helper.
Constructor Details
#initialize ⇒ Helper
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
#call ⇒ Object
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 |