Sha256: 75b74c4febd445cc20d2adaeeaa1f220f67c56cb30dceb492644fa7ab0c3abdc

Contents?: true

Size: 639 Bytes

Versions: 84

Compression:

Stored size: 639 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

84 entries across 84 versions & 13 rubygems

Version Path
rspec-rails-1.1.9 generators/rspec_controller/templates/controller_spec.rb
rspec-rails-1.1.7 generators/rspec_controller/templates/controller_spec.rb
rspec-rails-1.2.0 generators/rspec_controller/templates/controller_spec.rb
rspec-rails-1.1.12 generators/rspec_controller/templates/controller_spec.rb
rspec-rails-1.1.6 generators/rspec_controller/templates/controller_spec.rb
rspec-rails-1.1.8 generators/rspec_controller/templates/controller_spec.rb
rspec-rails-1.1.5 generators/rspec_controller/templates/controller_spec.rb
rspec-rails-1.2.6 generators/rspec_controller/templates/controller_spec.rb
rspec-rails-1.2.1 generators/rspec_controller/templates/controller_spec.rb
rspec-rails-1.2.5 generators/rspec_controller/templates/controller_spec.rb
rspec-rails-1.2.3 generators/rspec_controller/templates/controller_spec.rb
rspec-rails-1.2.4 generators/rspec_controller/templates/controller_spec.rb
rspec-rails-1.2.2 generators/rspec_controller/templates/controller_spec.rb
spree-0.4.1 vendor/plugins/rspec-rails/generators/rspec_controller/templates/controller_spec.rb
spree-0.4.0 vendor/plugins/rspec-rails/generators/rspec_controller/templates/controller_spec.rb
spree-0.5.0 vendor/plugins/rspec-rails/generators/rspec_controller/templates/controller_spec.rb
spree-0.6.0 vendor/plugins/rspec-rails/generators/rspec_controller/templates/controller_spec.rb
spree-0.5.1 vendor/plugins/rspec-rails/generators/rspec_controller/templates/controller_spec.rb
spree-0.7.1 vendor/plugins/rspec-rails/generators/rspec_controller/templates/controller_spec.rb
spree-0.7.0 vendor/plugins/rspec-rails/generators/rspec_controller/templates/controller_spec.rb