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



14
15
16
# File 'lib/generators/bounded_context/rspec_generator.rb', line 14

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

#require_bc_specObject



18
19
20
# File 'lib/generators/bounded_context/rspec_generator.rb', line 18

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

#spec_helperObject



10
11
12
# File 'lib/generators/bounded_context/rspec_generator.rb', line 10

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