Class: Embryo::RubyTemplate::ControllerSpec

Inherits:
Embryo::RubyTemplate show all
Defined in:
lib/rails-embryo/ruby_template/controller_spec.rb

Instance Method Summary collapse

Methods inherited from Embryo::RubyTemplate

#text

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

#pathObject



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