Sha256: 22a3579c6af40ba1fb9e349588b845f4d1793241bf51917ac40344c4d3104ac1

Contents?: true

Size: 336 Bytes

Versions: 29

Compression:

Stored size: 336 Bytes

Contents

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

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
sidetiq-0.7.2 test/test_config.rb
sidetiq-0.7.1 test/test_config.rb
sidetiq-0.7.0 test/test_config.rb
sidetiq-0.6.3 test/test_config.rb
sidetiq-0.6.2 test/test_config.rb
sidetiq-0.6.1 test/test_config.rb
sidetiq-0.6.0 test/test_config.rb
sidetiq-0.5.0 test/test_config.rb
sidetiq-0.4.3 test/test_config.rb
sidetiq-0.4.2 test/test_config.rb
sidetiq-0.4.1 test/test_config.rb
sidetiq-0.4.0 test/test_config.rb
sidetiq-0.4.0.rc4 test/test_config.rb
sidetiq-0.4.0.rc3 test/test_config.rb
sidetiq-0.4.0.rc2 test/test_config.rb
sidetiq-0.4.0.rc1 test/test_config.rb
sidetiq-0.3.7 test/test_config.rb
sidetiq-0.3.6 test/test_config.rb
sidetiq-0.3.5 test/test_config.rb
sidetiq-0.3.4 test/test_config.rb