Class: Embryo::RubyTemplate::ControllerSpec
- Inherits:
-
Embryo::RubyTemplate
- Object
- Embryo::RubyTemplate
- Embryo::RubyTemplate::ControllerSpec
- Defined in:
- lib/rails-embryo/ruby_template/controller_spec.rb
Instance Method Summary collapse
-
#initialize(model, action_templates) ⇒ ControllerSpec
constructor
A new instance of ControllerSpec.
- #path ⇒ Object
Methods inherited from Embryo::RubyTemplate
Constructor Details
#initialize(model, action_templates) ⇒ ControllerSpec
Returns a new instance of ControllerSpec.
5 6 7 8 |
# File 'lib/rails-embryo/ruby_template/controller_spec.rb', line 5 def initialize(model, action_templates) @model = model @action_templates = action_templates end |
Instance Method Details
#path ⇒ Object
10 11 12 |
# File 'lib/rails-embryo/ruby_template/controller_spec.rb', line 10 def path "spec/controllers/#{@model.plural_path}_controller_spec.rb" end |