Skip to content

Commit e4b73c5

Browse files
vivekmiyanipirj
authored andcommitted
Add view generator feature
1 parent 76ac69b commit e4b73c5

File tree

1 file changed

+23
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)