Class: Hanamismith::Builders::RSpec::ApplicationSharedContext

Inherits:
Rubysmith::Builders::Abstract
  • Object
show all
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

#callObject



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

def call
  return false unless settings.build_rspec

  path = "%project_name%/spec/support/shared_contexts/application.rb.erb"
  builder.call(settings.merge(template_path: path)).render

  true
end