Sha256: d3c1a690099e59f038bcb5206082deae76f76c4ec2e2859cb873b1d311062c08
Contents?: true
Size: 767 Bytes
Versions: 9
Compression:
Stored size: 767 Bytes
Contents
require_relative '../test_helper' require 'pathname' module Rails def self.root Pathname.new('foo') end end module Wolverine class ConfigurationTest < MiniTest::Unit::TestCase def test_default_redis assert_instance_of Redis, Wolverine::Configuration.new.redis end def test_default_script_path actual = Wolverine::Configuration.new.script_path assert_equal Pathname.new('foo/app/wolverine'), actual end def test_setting_redis config = Wolverine::Configuration.new config.redis = :foo assert_equal :foo, config.redis end def test_setting_script_path config = Wolverine::Configuration.new config.script_path = :foo assert_equal :foo, config.script_path end end end
Version data entries
9 entries across 9 versions & 1 rubygems