Skip to content

Commit dfe155d

Browse files
vivekmiyanipirj
authored andcommitted
Add mailbox generator feature
1 parent 6b83845 commit dfe155d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Feature: Mailbox generator spec
2+
3+
Scenario: Mailbox generator
4+
When I run `bundle exec rails generate mailbox forwards`
5+
Then the features should pass
6+
Then the output should contain:
7+
"""
8+
create app/mailboxes/forwards_mailbox.rb
9+
invoke rspec
10+
create spec/mailboxes/forwards_mailbox_spec.rb
11+
"""
12+
13+
Scenario: Mailbox generator with customized `default-path`
14+
Given a file named ".rspec" with:
15+
"""
16+
--default-path behaviour
17+
"""
18+
And I run `bundle exec rails generate mailbox forwards`
19+
Then the features should pass
20+
Then the output should contain:
21+
"""
22+
create app/mailboxes/forwards_mailbox.rb
23+
invoke rspec
24+
create behaviour/mailboxes/forwards_mailbox_spec.rb
25+
"""

0 commit comments

Comments
 (0)