Skip to content

Commit 6b83845

Browse files
vivekmiyanipirj
authored andcommitted
Add job generator feature
1 parent 5c30c15 commit 6b83845

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: Job generator spec
2+
3+
Scenario: Job generator
4+
When I run `bundle exec rails generate job user`
5+
Then the features should pass
6+
Then the output should contain:
7+
"""
8+
invoke rspec
9+
create spec/jobs/user_job_spec.rb
10+
create app/jobs/user_job.rb
11+
"""
12+
13+
Scenario: Job 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 job user`
19+
Then the features should pass
20+
Then the output should contain:
21+
"""
22+
invoke rspec
23+
create behaviour/jobs/user_job_spec.rb
24+
create app/jobs/user_job.rb
25+
"""

0 commit comments

Comments
 (0)