Skip to content

Commit 76ac69b

Browse files
vivekmiyanipirj
authored andcommitted
Add system generator feature
1 parent ddf3486 commit 76ac69b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Feature: System generator spec
2+
3+
Scenario: System generator
4+
When I run `bundle exec rails generate rspec:system posts`
5+
Then the features should pass
6+
Then the output should contain:
7+
"""
8+
create spec/system/posts_spec.rb
9+
"""
10+
11+
Scenario: System generator with customized `default-path`
12+
Given a file named ".rspec" with:
13+
"""
14+
--default-path behaviour
15+
"""
16+
And I run `bundle exec rails generate rspec:system posts`
17+
Then the features should pass
18+
Then the output should contain:
19+
"""
20+
create behaviour/system/posts_spec.rb
21+
"""

0 commit comments

Comments
 (0)