Class: Hanamismith::Builders::RSpec::ApplicationSharedContext
- Inherits:
-
Rubysmith::Builders::Abstract
- Object
- Rubysmith::Builders::Abstract
- Hanamismith::Builders::RSpec::ApplicationSharedContext
- Defined in:
- lib/hanamismith/builders/rspec/application_shared_context.rb
Overview
Builds project skeleton RSpec application shared context.
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/hanamismith/builders/rspec/application_shared_context.rb', line 12 def call return configuration unless configuration.build_rspec path = "%project_name%/spec/support/shared_contexts/application.rb.erb" builder.call(configuration.merge(template_path: path)).render configuration end |