Sha256: 1e916a2fa8b5d3a9e6591846c6230d76239ca006181c04ef702a039c17963a2e

Contents?: true

Size: 433 Bytes

Versions: 5

Compression:

Stored size: 433 Bytes

Contents

require 'rails_helper'

RSpec.describe "<%= class_name.pluralize %>", <%= type_metatag(:request) %> do
<% namespaced_path = regular_class_path.join('/') %>
<% for action in actions -%>
  describe "GET /<%= action %>" do
    it "returns http success" do
      get "<%= "/#{namespaced_path}" if namespaced_path != '' %>/<%= file_name %>/<%= action %>"
      expect(response).to have_http_status(:success)
    end
  end

<% end -%>
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rspec-rails-4.0.2 lib/generators/rspec/controller/templates/request_spec.rb
rspec-rails-4.0.1 lib/generators/rspec/controller/templates/request_spec.rb
rspec-rails-4.0.0 lib/generators/rspec/controller/templates/request_spec.rb
rspec-rails-4.0.0.rc1 lib/generators/rspec/controller/templates/request_spec.rb
rspec-rails-4.0.0.beta4 lib/generators/rspec/controller/templates/request_spec.rb