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.3.3 test/test_config.rb
sidetiq-0.3.2 test/test_config.rb
sidetiq-0.3.1 test/test_config.rb
sidetiq-0.3.0 test/test_config.rb
sidetiq-0.2.0 test/test_config.rb
sidetiq-0.1.5 test/test_config.rb
sidetiq-0.1.4 test/test_config.rb
sidetiq-0.1.3 test/test_config.rb
sidetiq-0.1.2 test/test_config.rb