mirror of
https://github.com/endofunky/sidetiq.git
synced 2022-11-09 13:53:30 -05:00
21 lines
336 B
Ruby
21 lines
336 B
Ruby
require_relative 'helper'
|
|
|
|
class TestConfig < Sidetiq::TestCase
|
|
def setup
|
|
@saved = Sidetiq.config
|
|
Sidetiq.config = OpenStruct.new
|
|
end
|
|
|
|
def teardown
|
|
Sidetiq.config = @saved
|
|
end
|
|
|
|
def test_configure
|
|
Sidetiq.configure do |config|
|
|
config.test = 42
|
|
end
|
|
|
|
assert_equal 42, Sidetiq.config.test
|
|
end
|
|
end
|
|
|