Sha256: 035c5dd31c7996c8ab5df27491315cdbfa1a75a6cd3ea899f0e276f7816508e7

Contents?: true

Size: 697 Bytes

Versions: 6

Compression:

Stored size: 697 Bytes

Contents

require File.join(File.expand_path('../test_helper', __FILE__))

class WolverineTest < MiniTest::Unit::TestCase

  def test_redis
    Wolverine.config.redis = :redis
    assert_equal :redis, Wolverine.redis
  end

  def test_reset!
    dir = Wolverine.root_directory
    assert_equal Wolverine.root_directory, dir
    Wolverine.reset!
    refute_equal Wolverine.root_directory, dir
  end

  def test_instantiate_wolverine_with_config
    r = Struct.new(:Redis)
    config = Wolverine::Configuration.new(r, 'path')
    wolverine = Wolverine.new(config)

    assert_equal r, wolverine.config.redis
    assert_equal r, wolverine.redis
    assert_equal 'path', wolverine.config.script_path
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wolverine-0.3.2 test/wolverine_test.rb
wolverine-0.3.1 test/wolverine_test.rb
wolverine-0.2.7 test/wolverine_test.rb
wolverine-0.2.6 test/wolverine_test.rb
wolverine-0.3.0 test/wolverine_test.rb
wolverine-0.2.5 test/wolverine_test.rb