Skip to content

Commit 44c9334

Browse files
committed
manually tag request specs to aid users
1 parent dc294f6 commit 44c9334

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

features/request_specs/request_spec.feature

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Feature: request spec
44
designed to drive behavior through the full stack, including routing
55
(provided by Rails) and without stubbing (that's up to you).
66

7+
Request specs are marked by `:type => :request` or if you have set
8+
`config.infer_spec_type_from_file_location!` by placing them in `spec/requests`.
9+
710
With request specs, you can:
811

912
* specify a single request
@@ -28,7 +31,7 @@ Feature: request spec
2831
"""ruby
2932
require "rails_helper"
3033
31-
RSpec.describe "Widget management" do
34+
RSpec.describe "Widget management", :type => :request do
3235
3336
it "creates a Widget and redirects to the Widget's page" do
3437
get "/widgets/new"

0 commit comments

Comments
 (0)