Sha256: e3369064fa9bf53bffdf1643a7cc2f626f6fd473ab0369e9054a49509036393e

Contents?: true

Size: 641 Bytes

Versions: 9

Compression:

Stored size: 641 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../spec_helper')

describe <%= class_name %>Controller do

<% if actions.empty? -%>
  # Delete this example and add some real ones
<% else -%>
  # Delete these examples and add some real ones
<% end -%>
  it "should use <%= class_name %>Controller" do
    controller.should be_an_instance_of(<%= class_name %>Controller)
  end

<% unless actions.empty? -%>
<% for action in actions -%>

  describe "GET '<%= action %>'" do
    it "should be successful" do
      get '<%= action %>'
      response.should be_success
    end
  end
<% end -%>
<% end -%>
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
Objective3-objective_spec-0.0.2 generators/objective_controller/templates/controller_spec.rb
Objective3-objective_spec-0.0.3 generators/objective_controller/templates/controller_spec.rb
Objective3-objective_spec-0.0.4 generators/objective_controller/templates/controller_spec.rb
Objective3-objective_spec-0.1.2 generators/objective_controller/templates/controller_spec.rb
Objective3-objective_spec-0.1.3 generators/objective_controller/templates/controller_spec.rb
Objective3-objective_spec-0.1.4 generators/objective_controller/templates/controller_spec.rb
objective_spec-0.3.1 generators/objective_controller/templates/controller_spec.rb
objective_spec-0.3.0 generators/objective_controller/templates/controller_spec.rb
objective_spec-0.2.0 generators/objective_controller/templates/controller_spec.rb