Sha256: a775ed85da4c8c07ea008350aa07dc7f39e1fd678da61f6945b0961c2f348700
Contents?: true
Size: 621 Bytes
Versions: 21
Compression:
Stored size: 621 Bytes
Contents
# encoding: UTF-8 require File.expand_path("helper", File.dirname(__FILE__)) class TestDistributedTransactions < Test::Unit::TestCase include Helper::Distributed def test_multi_discard @foo = nil assert_raise Redis::Distributed::CannotDistribute do r.multi { @foo = 1 } end assert_equal nil, @foo assert_raise Redis::Distributed::CannotDistribute do r.discard end end def test_watch_unwatch assert_raise Redis::Distributed::CannotDistribute do r.watch("foo") end assert_raise Redis::Distributed::CannotDistribute do r.unwatch end end end
Version data entries
21 entries across 20 versions & 7 rubygems
Version | Path |
---|---|
redis-3.0.6 | test/distributed_transactions_test.rb |