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
PeterCoulton-rotten-generators-0.5.0 rails_generators/rotten_controller/templates/controller_spec.rb
PeterCoulton-rotten-generators-0.5.1 rails_generators/rotten_controller/templates/controller_spec.rb
PeterCoulton-rotten-generators-0.6.0 rails_generators/rotten_controller/templates/controller_spec.rb
PeterCoulton-rotten-generators-0.7.0 rails_generators/rotten_controller/templates/controller_spec.rb
PeterCoulton-rotten-generators-0.7.12 rails_generators/rotten_controller/templates/controller_spec.rb
cavalle-rspec-rails-1.2.2.0.1 generators/rspec_controller/templates/controller_spec.rb
cavalle-rspec-rails-1.2.2.0.2 generators/rspec_controller/templates/controller_spec.rb
cavalle-rspec-rails-1.2.3.1 generators/rspec_controller/templates/controller_spec.rb
cavalle-rspec-rails-1.2.4.0.1 generators/rspec_controller/templates/controller_spec.rb
dchelimsky-rspec-rails-1.1.10 generators/rspec_controller/templates/controller_spec.rb
dchelimsky-rspec-rails-1.1.11.1 generators/rspec_controller/templates/controller_spec.rb
dchelimsky-rspec-rails-1.1.11.2 generators/rspec_controller/templates/controller_spec.rb
dchelimsky-rspec-rails-1.1.11.3 generators/rspec_controller/templates/controller_spec.rb
dchelimsky-rspec-rails-1.1.11.4 generators/rspec_controller/templates/controller_spec.rb
dchelimsky-rspec-rails-1.1.11.5 generators/rspec_controller/templates/controller_spec.rb
dchelimsky-rspec-rails-1.1.11.6 generators/rspec_controller/templates/controller_spec.rb
dchelimsky-rspec-rails-1.1.11.7 generators/rspec_controller/templates/controller_spec.rb
dchelimsky-rspec-rails-1.1.11 generators/rspec_controller/templates/controller_spec.rb
dchelimsky-rspec-rails-1.1.12 generators/rspec_controller/templates/controller_spec.rb
dchelimsky-rspec-rails-1.1.6 generators/rspec_controller/templates/controller_spec.rb