Sha256: 9f1213141566334b8f74ad53de1524fd88943c863f275c8b247abe5b17af9087

Contents?: true

Size: 251 Bytes

Versions: 26

Compression:

Stored size: 251 Bytes

Contents

require 'spec_helper'

describe <%= class_name %>Controller do

<% for action in actions -%>
  describe "GET '<%= action %>'" do
    it "returns http success" do
      get '<%= action %>'
      response.should be_success
    end
  end

<% end -%>
end

Version data entries

26 entries across 21 versions & 4 rubygems

Version Path
rspec-rails-2.8.1 lib/generators/rspec/controller/templates/controller_spec.rb
rspec-rails-2.8.0 lib/generators/rspec/controller/templates/controller_spec.rb
rspec-rails-2.8.0.rc2 lib/generators/rspec/controller/templates/controller_spec.rb
rspec-rails-2.8.0.rc1 lib/generators/rspec/controller/templates/controller_spec.rb
rspec-rails-2.7.0 lib/generators/rspec/controller/templates/controller_spec.rb
rspec-rails-2.7.0.rc1 lib/generators/rspec/controller/templates/controller_spec.rb