RSpec / RSpec Rails / Docs / Generator specs
Integration generator spec
Scenario: Integration generator
- When I run `bundle exec rails generate rspec:integration posts`
- Then the features should pass
- Then the output should contain:
text
create spec/requests/posts_spec.rb
Scenario: Integration generator with customized default-path
- Given a file named "
.rspec" with:--default-path behaviour - And I run `bundle exec rails generate rspec:integration posts`
- Then the features should pass
- Then the output should contain:
text
create behaviour/requests/posts_spec.rb
Source: features/generator_specs/integration_specs.feature at v6.0.4, RSpec Rails (MIT license).