1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
Feature: 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:
"""
invoke rspec
create spec/channels/group_channel_spec.rb
"""
Then the output should contain:
"""
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:
"""
invoke rspec
create behaviour/channels/group_channel_spec.rb
"""
Then the output should contain:
"""
create app/channels/group_channel.rb
"""
|