test/progressrus_test.rb in progressrus-0.0.2 vs test/progressrus_test.rb in progressrus-0.0.3
- old
+ new
@@ -190,9 +190,16 @@
Progressrus.stores << mysql
@progress.tick
end
+ def test_tick_and_complete_dont_raise_if_store_is_unavailable
+ store = Progressrus.stores.first
+ store.redis.expects(:hset).at_least_once.raises(::Redis::BaseError)
+ @progress.tick
+ @progress.complete
+ end
+
def test_should_not_be_able_to_initialize_with_total_0
assert_raises ArgumentError do
Progressrus.new(total: 0)
end
end