RSpec / RSpec Rails / Docs / Generator specs
Channel generator spec
Scenario: Channel generator
- When I run `bundle exec rails generate channel group`
- Then the features should pass
- Then the output should contain:
text
invoke rspec create spec/channels/group_channel_spec.rb - Then the output should contain:
text
create app/channels/group_channel.rb
Scenario: Channel generator with customized default-path
- Given a file named "
.rspec" with:--default-path behaviour - And I run `bundle exec rails generate channel group`
- Then the features should pass
- Then the output should contain:
text
invoke rspec create behaviour/channels/group_channel_spec.rb - Then the output should contain:
text
create app/channels/group_channel.rb
Source: features/generator_specs/channel_specs.feature at v6.0.4, RSpec Rails (MIT license).