test/test_manage_rules.rb in powertrack-1.0.3 vs test/test_manage_rules.rb in powertrack-1.1.0
- old
+ new
@@ -3,10 +3,18 @@
require 'multi_json'
class TestManageRules < Minitest::Test
def test_add_then_delete_a_single_rule
- stream = new_stream
+ add_then_delete_a_single_rule(false)
+ end
+
+ def test_add_then_delete_a_single_rule_in_replay_mode
+ add_then_delete_a_single_rule(true)
+ end
+
+ def add_then_delete_a_single_rule(replay)
+ stream = new_stream(replay)
rule = PowerTrack::Rule.new('coke')
assert rule.valid?
pre_existing_rules = stream.list_rules