forked from resque/resque-scheduler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CI matrix and fix tests (resque#766)
* Add Ruby 3.2 to CI matrix * Copy resque/server/test_helper from Resque * Tweak matrix * Ensure that Sinatra > 2.0 is used For some reason, 1.0 may be installed. If 1.0 is used, the following error occurs. ``` <internal:/opt/hostedtoolcache/Ruby/3.2.1/x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require': cannot load such file -- rack/showexceptions (LoadError) Did you mean? rack/show_exceptions ``` * Suppress RuboCop offences
- Loading branch information
1 parent
2e3fb0d
commit edda557
Showing
4 changed files
with
25 additions
and
1 deletion.
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
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 |
---|---|---|
|
@@ -24,4 +24,6 @@ else | |
gem 'redis', redis_version | ||
end | ||
|
||
gem 'sinatra', '> 2.0' | ||
|
||
gemspec |
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,19 @@ | ||
require 'rack/test' | ||
require 'resque/server' | ||
|
||
module Resque | ||
module TestHelper | ||
class Test::Unit::TestCase # rubocop:disable Style/ClassAndModuleChildren | ||
include Rack::Test::Methods | ||
def app | ||
Resque::Server.new | ||
end | ||
|
||
def self.should_respond_with_success | ||
test 'should respond with success' do | ||
assert last_response.ok?, last_response.errors | ||
end | ||
end | ||
end | ||
end | ||
end |