Sha256: 8f32292faa70cc6e3b03e17180a7664979a9941193299a5b40ded7e0842d7c13
Contents?: true
Size: 627 Bytes
Versions: 2
Compression:
Stored size: 627 Bytes
Contents
require_relative 'test_helper' class WolverineTest < MiniTest::Unit::TestCase def setup Wolverine.config.redis = :redis Wolverine.config.script_path = Pathname.new('foo') end def test_adds_extension_if_none_present assert_equal Pathname.new('foo/bar.lua'), Wolverine.full_path('bar') end def test_redis assert_equal :redis, Wolverine.redis end def test_call script = stub script.expects(:call).with(:redis, :a, :b).returns(:return) Wolverine::Script.expects(:new).with(Pathname.new('foo/bar.lua')).returns(script) assert_equal :return, Wolverine.call('bar', :a, :b) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wolverine-0.0.3 | test/wolverine_test.rb |
wolverine-0.0.2 | test/wolverine_test.rb |