File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ Feature : Channel generator spec
2
+
3
+ Scenario : Channel generator
4
+ When I run `bundle exec rails generate channel group`
5
+ Then the features should pass
6
+ Then the output should contain:
7
+ """
8
+ invoke rspec
9
+ create spec/channels/group_channel_spec.rb
10
+ create app/channels/group_channel.rb
11
+ identical app/javascript/channels/index.js
12
+ identical app/javascript/channels/consumer.js
13
+ create app/javascript/channels/group_channel.js
14
+ """
15
+
16
+ Scenario : Channel generator with customized `default-path`
17
+ Given a file named ".rspec" with:
18
+ """
19
+ --default-path behaviour
20
+ """
21
+ And I run `bundle exec rails generate channel group`
22
+ Then the features should pass
23
+ Then the output should contain:
24
+ """
25
+ invoke rspec
26
+ create behaviour/channels/group_channel_spec.rb
27
+ create app/channels/group_channel.rb
28
+ identical app/javascript/channels/index.js
29
+ identical app/javascript/channels/consumer.js
30
+ create app/javascript/channels/group_channel.js
31
+ """
You can’t perform that action at this time.
0 commit comments