Class: BoundedContext::Generators::RspecGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/bounded_context/rspec_generator.rb

Instance Method Summary collapse

Instance Method Details

#bc_specObject



12
13
14
# File 'lib/generators/bounded_context/rspec_generator.rb', line 12

def bc_spec
  template "bc_spec.rb", "#{bounded_context_name}/spec/#{bounded_context_name}_spec.rb"
end

#require_bc_specObject



16
17
18
# File 'lib/generators/bounded_context/rspec_generator.rb', line 16

def require_bc_spec
  template "require_bc_spec.rb", "spec/#{bounded_context_name}_spec.rb"
end

#spec_helperObject



8
9
10
# File 'lib/generators/bounded_context/rspec_generator.rb', line 8

def spec_helper
  template "spec_helper.rb", "#{bounded_context_name}/spec/spec_helper.rb"
end