File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ Feature: feature spec
5
5
through an application. They should drive the application only via its
6
6
external interface, usually web pages.
7
7
8
+ Feature specs are marked by `:type => :feature` or if you have set
9
+ `config.infer_spec_type_from_file_location!` by placing them in `spec/features`.
10
+
8
11
Feature specs require the [capybara](http://github.com/jnicklas/capybara)
9
12
gem, version 2.2.0 or later (we recommend 2.3.0 or later to avoid some
10
13
deprecation warnings). Refer to the [capybara API
@@ -14,7 +17,8 @@ Feature: feature spec
14
17
The `feature` and `scenario` DSL correspond to `describe` and `it`,
15
18
respectively. These methods are simply aliases that allow feature specs to
16
19
read more as [customer tests](http://c2.com/cgi/wiki?CustomerTest) and
17
- [acceptance tests](http://c2.com/cgi/wiki?AcceptanceTest).
20
+ [acceptance tests](http://c2.com/cgi/wiki?AcceptanceTest). They set
21
+ `:type => :feature` automatically for you.
18
22
19
23
Scenario : specify creating a Widget by driving the application with capybara
20
24
Given a file named "spec/features/widget_management_spec.rb" with:
You can’t perform that action at this time.
0 commit comments