class BoundedContext::Generators::RspecGenerator

Public Instance Methods

bc_spec() click to toggle source
# 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_spec() click to toggle source
# 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_helper() click to toggle source
# 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

Private Instance Methods

bounded_context_name() click to toggle source
# File lib/generators/bounded_context/rspec_generator.rb, line 28
def bounded_context_name
  name.underscore
end
bounded_context_namespace() click to toggle source
# File lib/generators/bounded_context/rspec_generator.rb, line 24
def bounded_context_namespace
  name.camelize
end