Skip to content

Commit 5eb2e07

Browse files
JonRowepirj
authored andcommitted
Fix directory structure format
1 parent a6901a8 commit 5eb2e07

File tree

1 file changed

+21
-14
lines changed

1 file changed

+21
-14
lines changed

features/directory_structure.feature

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,23 @@ Feature: Directory Structure
44
their purpose:
55

66
- [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+
1112
- [Feature specs](feature-specs) reside in the `spec/features` directory
13+
1214
- [View specs](view-specs) reside in the `spec/views` directory
15+
1316
- [Helper specs](helper-specs) reside in the `spec/helpers` directory
17+
1418
- [Mailer specs](mailer-specs) reside in the `spec/mailers` directory
19+
1520
- [Routing specs](routing-specs) reside in the `spec/routing` directory
21+
1622
- [Job specs](job-specs) reside in the `spec/jobs` directory
23+
1724
- [System specs](system-specs) reside in the `spec/system` directory
1825

1926
Application developers are free to use a different directory structure. In
@@ -101,37 +108,37 @@ Feature: Directory Structure
101108
│   └── books_helper.rb
102109
├── models
103110
│   ├── author.rb
104-
│   ── book.rb
111+
│   ── book.rb
105112
└── views
106113
├── books
107-
── layouts
114+
── layouts
108115
lib
109116
├── country_map.rb
110117
├── development_mail_interceptor.rb
111118
├── enviroment_mail_interceptor.rb
112119
└── tasks
113-
── irc.rake
120+
── irc.rake
114121
spec
115122
├── controllers
116-
│   ── books_controller_spec.rb
123+
│   ── books_controller_spec.rb
117124
├── country_map_spec.rb
118125
├── features
119-
│   ── tracking_book_delivery_spec.rb
126+
│   ── tracking_book_delivery_spec.rb
120127
├── helpers
121128
│   └── books_helper_spec.rb
122129
├── models
123130
│   ├── author_spec.rb
124-
│   ── book_spec.rb
131+
│   ── book_spec.rb
125132
├── rails_helper.rb
126133
├── requests
127-
│   ── books_spec.rb
134+
│   ── books_spec.rb
128135
├── routing
129136
│   └── books_routing_spec.rb
130137
├── spec_helper.rb
131-
── tasks
132-
│   ── irc_spec.rb
138+
── tasks
139+
│   ── irc_spec.rb
133140
└── views
134-
── books
141+
── books
135142

136143
Scenario: Standard Rails specs must specify the `:type` metadata
137144
Given a file named "spec/functional/widgets_controller_spec.rb" with:

0 commit comments

Comments
 (0)