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
rotten-generators-0.9.2 rails_generators/rotten_controller/templates/controller_spec.rb
rotten-generators-0.9.3 rails_generators/rotten_controller/templates/controller_spec.rb
rotten-generators-0.9.4 rails_generators/rotten_controller/templates/controller_spec.rb
rotten-generators-0.9.5 rails_generators/rotten_controller/templates/controller_spec.rb
rotten-generators-0.9.6 rails_generators/rotten_controller/templates/controller_spec.rb
rotten-generators-0.9.7 rails_generators/rotten_controller/templates/controller_spec.rb
rotten-rotten-generators-0.7.12 rails_generators/rotten_controller/templates/controller_spec.rb
jstorimer-deep-test-2.0.0 sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_controller/templates/controller_spec.rb
jstorimer-deep-test-1.4.0 sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_controller/templates/controller_spec.rb
jstorimer-deep-test-1.3.0 sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_controller/templates/controller_spec.rb
jstorimer-deep-test-1.2.0 sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_controller/templates/controller_spec.rb
jstorimer-deep-test-1.1.0 sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_controller/templates/controller_spec.rb
jstorimer-deep-test-1.0.0 sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_controller/templates/controller_spec.rb
jstorimer-deep-test-0.2.0 sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_controller/templates/controller_spec.rb
jstorimer-deep-test-0.1.0 sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_controller/templates/controller_spec.rb
rspec-rails-1.2.7 generators/rspec_controller/templates/controller_spec.rb
rspec-rails-1.2.7.1 generators/rspec_controller/templates/controller_spec.rb
pictrails-0.5.0 vendor/plugins/rspec-rails/generators/rspec_controller/templates/controller_spec.rb
rspec-rails-1.1.10 generators/rspec_controller/templates/controller_spec.rb
rspec-rails-1.1.11 generators/rspec_controller/templates/controller_spec.rb