-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
confirm resque task environment is valid
- Loading branch information
1 parent
6ae7e26
commit 712ee97
Showing
5 changed files
with
44 additions
and
3 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1 +1 @@ | ||
4.6.2 | ||
4.7.7 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
development: | ||
workers: | ||
"*": 2 | ||
test: | ||
workers: | ||
"*": 4 | ||
prod: | ||
workers: | ||
"*": 6 | ||
|
||
academiccommons_test: | ||
workers: | ||
"*": 4 | ||
academiccommons_prod: | ||
workers: | ||
"*": 6 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rails_helper' | ||
require 'rake' | ||
|
||
RSpec.describe 'ac:generate_api_token', type: :task do | ||
before do | ||
Token.delete_all | ||
end | ||
|
||
after do | ||
Rake.application.clear | ||
end | ||
|
||
xit 'generates a new token record' do | ||
email = 'test@test.org' | ||
description = 'test description' | ||
Rake::Task['ac:generate_api_token'].invoke(email, description) | ||
expect(Token.count).to eq(1) | ||
end | ||
end |