Sha256: cc2c9384ab6f17ae062faf409793ad4ee01c1b9dfedd8cbc13db7c6e46e42858
Contents?: true
Size: 736 Bytes
Versions: 1
Compression:
Stored size: 736 Bytes
Contents
# coding: utf-8 require 'helper' require 'output_interceptor' class TestRemote < Test::Unit::TestCase def dummy type m = stub 'storage_type', :class => type end def test_remote Boom.use_remote false Boom::Output.capture_output local = [Boom::Storage::Json, Boom::Storage::Keychain ] remote = [Boom::Storage::Gist, Boom::Storage::Mongodb, Boom::Storage::Redis] (local + remote).all? do |type| assert Boom::Remote.allowed? dummy(type) end Boom.use_remote true Boom::Remote.stubs(:output) remote.all? { |t| assert Boom::Remote.allowed?(dummy(t)), "#{t} should be allowed" } local.all? { |t| assert !Boom::Remote.allowed?(dummy(t)), "#{t} should not be allowed"} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kaboom-0.3.3 | test/test_remote.rb |