1 require File.dirname(__FILE__) + '/helper'
3 class TestConditionsTries < Test::Unit::TestCase
5 @c = Conditions::Tries.new
10 def test_prepare_should_create_timeline
11 assert 3, @c.instance_variable_get(:@timeline).instance_variable_get(:@max_size)
14 def test_test_should_return_true_if_called_three_times_within_one_second
20 def test_test_should_return_false_on_fourth_call_if_called_three_times_within_one_second
26 class TestConditionsTriesWithin < Test::Unit::TestCase
28 @c = Conditions::Tries.new
34 def test_test_should_return_true_if_called_three_times_within_one_second
40 def test_test_should_return_false_if_called_three_times_within_two_seconds