@@ -4,16 +4,23 @@ Feature: Directory Structure
4
4
their purpose:
5
5
6
6
- [Model specs](model-specs) reside in the `spec/models` directory
7
- - [Controller specs](controller-specs) reside in the `spec/controllers`
8
- directory
9
- - [Request specs](request-specs) reside in the `spec/requests` directory. The
10
- directory can also be named `integration` or `api`.
7
+
8
+ - [Controller specs](controller-specs) reside in the `spec/controllers` directory
9
+
10
+ - [Request specs](request-specs) reside in the `spec/requests` directory. The directory can also be named `integration` or `api`.
11
+
11
12
- [Feature specs](feature-specs) reside in the `spec/features` directory
13
+
12
14
- [View specs](view-specs) reside in the `spec/views` directory
15
+
13
16
- [Helper specs](helper-specs) reside in the `spec/helpers` directory
17
+
14
18
- [Mailer specs](mailer-specs) reside in the `spec/mailers` directory
19
+
15
20
- [Routing specs](routing-specs) reside in the `spec/routing` directory
21
+
16
22
- [Job specs](job-specs) reside in the `spec/jobs` directory
23
+
17
24
- [System specs](system-specs) reside in the `spec/system` directory
18
25
19
26
Application developers are free to use a different directory structure. In
@@ -101,37 +108,37 @@ Feature: Directory Structure
101
108
│ └── books_helper.rb
102
109
├── models
103
110
│ ├── author.rb
104
- │ ├ ── book.rb
111
+ │ └ ── book.rb
105
112
└── views
106
113
├── books
107
- ├ ── layouts
114
+ └ ── layouts
108
115
lib
109
116
├── country_map.rb
110
117
├── development_mail_interceptor.rb
111
118
├── enviroment_mail_interceptor.rb
112
119
└── tasks
113
- ├ ── irc.rake
120
+ └ ── irc.rake
114
121
spec
115
122
├── controllers
116
- │ ├ ── books_controller_spec.rb
123
+ │ └ ── books_controller_spec.rb
117
124
├── country_map_spec.rb
118
125
├── features
119
- │ ├ ── tracking_book_delivery_spec.rb
126
+ │ └ ── tracking_book_delivery_spec.rb
120
127
├── helpers
121
128
│ └── books_helper_spec.rb
122
129
├── models
123
130
│ ├── author_spec.rb
124
- │ ├ ── book_spec.rb
131
+ │ └ ── book_spec.rb
125
132
├── rails_helper.rb
126
133
├── requests
127
- │ ├ ── books_spec.rb
134
+ │ └ ── books_spec.rb
128
135
├── routing
129
136
│ └── books_routing_spec.rb
130
137
├── spec_helper.rb
131
- └ ── tasks
132
- │ ├ ── irc_spec.rb
138
+ ├ ── tasks
139
+ │ └ ── irc_spec.rb
133
140
└── views
134
- ├ ── books
141
+ └ ── books
135
142
136
143
Scenario : Standard Rails specs must specify the `:type` metadata
137
144
Given a file named "spec/functional/widgets_controller_spec.rb" with:
0 commit comments