-
-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…553) Co-authored-by: Ben Sheldon [he/him] <bensheldon@gmail.com>
- Loading branch information
1 parent
ee8e1b4
commit af4aa5b
Showing
8 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...p/controllers/good_job/base_controller.rb → ...ollers/good_job/application_controller.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
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
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
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
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
File renamed without changes.
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,21 @@ | ||
# frozen_string_literal: true | ||
require 'rails_helper' | ||
|
||
describe "requests to jobs endpoint", type: :request do | ||
before do | ||
allow(GoodJob).to receive(:preserve_job_records).and_return(true) | ||
# When spec type is request, ActiveJob::TestHelper is included. It sets the | ||
# adapter to TestAdapter. We forcibly set the adapter to GJ to create GJ | ||
# records. | ||
ExampleJob.enable_test_adapter(GoodJob::Adapter.new(execution_mode: :inline)) | ||
end | ||
|
||
it "renders successfully" do | ||
ExampleJob.perform_later | ||
assert_equal 1, GoodJob::Execution.count | ||
|
||
get "/good_job/jobs" | ||
|
||
assert_response :success | ||
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