class RailsEventStore::Generators::RspecGenerator
Public Instance Methods
Source
# File lib/generators/rails_event_store/rspec_generator.rb, line 14 def bc_spec template "bc_spec.erb", "#{bounded_context_name}/spec/#{bounded_context_name}_spec.rb" end
Source
# File lib/generators/rails_event_store/rspec_generator.rb, line 18 def require_bc_spec template "require_bc_spec.erb", "spec/#{bounded_context_name}_spec.rb" end
Source
# File lib/generators/rails_event_store/rspec_generator.rb, line 10 def spec_helper template "spec_helper.erb", "#{bounded_context_name}/spec/spec_helper.rb" end
Private Instance Methods
Source
# File lib/generators/rails_event_store/rspec_generator.rb, line 28 def bounded_context_name name.underscore end
Source
# File lib/generators/rails_event_store/rspec_generator.rb, line 24 def bounded_context_namespace name.camelize end