-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for a job that does not raise
- Loading branch information
1 parent
444c8d6
commit a1daac7
Showing
2 changed files
with
59 additions
and
4 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
features/fixtures/rails_integrations/app/app/jobs/working_job.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
class WorkingJob < ApplicationJob | ||
self.queue_adapter = ENV['ACTIVE_JOB_QUEUE_ADAPTER'].to_sym | ||
|
||
def perform | ||
do_stuff | ||
|
||
more_stuff | ||
|
||
success! | ||
end | ||
|
||
def do_stuff | ||
'beep boop' | ||
end | ||
|
||
def more_stuff | ||
'boop beep' | ||
end | ||
|
||
def success! | ||
'yay' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters