Sha256: bf3bd8180d2e97feaf4ecac4ab297d923cd3e4ed6c73e730857c5df844e77c46

Contents?: true

Size: 413 Bytes

Versions: 5

Compression:

Stored size: 413 Bytes

Contents

require 'spec_helper'

describe "<%= class_name.pluralize %>" do
  describe "GET /<%= table_name %>" do
    it "works! (now write some real specs)" do
<% if webrat? -%>
      visit <%= table_name %>_path
<% else -%>
      # Run the generator again with the --webrat flag if you want to use webrat methods/matchers
      get <%= table_name %>_path
<% end -%>
      response.status.should be(200)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rspec-rails-2.4.1 lib/generators/rspec/integration/templates/request_spec.rb
rspec-rails-2.4.0 lib/generators/rspec/integration/templates/request_spec.rb
rspec-rails-2.3.1 lib/generators/rspec/integration/templates/request_spec.rb
rspec-rails-2.3.0 lib/generators/rspec/integration/templates/request_spec.rb
rspec-rails-2.2.1 lib/generators/rspec/integration/templates/request_spec.rb