test/integration_test.rb in progressrus-0.1.1 vs test/integration_test.rb in progressrus-0.1.2

- old
+ new

@@ -19,9 +19,17 @@ tick = ticks.first assert_equal 20, tick.total assert_equal 1, tick.count end + def test_setting_total_after_persist_persists_total + progress = Progressrus.new(scope: ["walrus"], total: 0, persist: true, id: '123') + assert_equal 0, progress.total + progress.total = 20 + progress = Progressrus.find(["walrus"], '123') + assert_equal 20, progress.total + end + def test_create_multiple_ticks_and_see_them_in_redis @progress.tick progress2 = Progressrus.new(scope: ["walrus"], total: 50) progress2.tick