We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76ac69b commit e4b73c5Copy full SHA for e4b73c5
features/generator_specs/view_specs.feature
@@ -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
19
20
21
+ create behaviour/views/posts
22
+ create behaviour/views/posts/index.html.erb_spec.rb
23
0 commit comments