Skip to content

Commit

Permalink
Add feature to test default-path configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekmiyani committed Jul 13, 2021
1 parent 0919d2a commit 5f7b640
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions features/generator_specs/generator_specs.feature
Expand Up @@ -14,3 +14,17 @@ Feature: Generator spec
invoke rspec
create spec/generator/my_generators_generator_spec.rb
"""

Scenario: Use custom generator with different default path
When I run `bundle exec rails generate rspec:install --default-path behaviour --force`
And I run `bundle exec rails generate generator my_generator`
Then the features should pass
Then the output should contain:
"""
create lib/generators/my_generator
create lib/generators/my_generator/my_generator_generator.rb
create lib/generators/my_generator/USAGE
create lib/generators/my_generator/templates
invoke rspec
create behaviour/generator/my_generators_generator_spec.rb
"""

0 comments on commit 5f7b640

Please sign in to comment.