1
0
Fork 0
mirror of https://github.com/endofunky/sidetiq.git synced 2022-11-09 13:53:30 -05:00
endofunky--sidetiq/test/test_config.rb

22 lines
336 B
Ruby
Raw Normal View History

2013-02-01 07:11:25 -05:00
require_relative 'helper'
class TestConfig < Sidetiq::TestCase
2013-02-01 07:11:25 -05:00
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