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 0f162d3 commit 6c27d8fCopy full SHA for 6c27d8f
features/generator_specs/helper_specs.feature
@@ -0,0 +1,25 @@
1
+Feature: Helper generator spec
2
+
3
+ Scenario: Helper generator
4
+ When I run `bundle exec rails generate helper posts`
5
+ Then the features should pass
6
+ Then the output should contain:
7
+ """
8
+ create app/helpers/posts_helper.rb
9
+ invoke rspec
10
+ create spec/helpers/posts_helper_spec.rb
11
12
13
+ Scenario: Helper generator with customized `default-path`
14
+ Given a file named ".rspec" with:
15
16
+ --default-path behaviour
17
18
+ And I run `bundle exec rails generate helper posts`
19
20
21
22
23
24
+ create behaviour/helpers/posts_helper_spec.rb
25
0 commit comments