Class: BoundedContext::Generators::RspecGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- BoundedContext::Generators::RspecGenerator
- Defined in:
- lib/generators/bounded_context/rspec_generator.rb
Instance Method Summary collapse
Instance Method Details
#bc_spec ⇒ Object
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_spec ⇒ Object
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_helper ⇒ Object
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 |