test/test_helper.rb in sablon-0.0.22 vs test/test_helper.rb in sablon-0.1.0
- old
+ new
@@ -12,6 +12,22 @@
class Sablon::TestCase < MiniTest::Test
def teardown
super
end
+
+ class UIDTestGenerator
+ def initialize
+ @current_id = 1234
+ @current_id_start = @current_id
+ end
+
+ def new_uid
+ @current_id += 1
+ @current_id.to_s
+ end
+
+ def reset
+ @current_id = @current_id_start
+ end
+ end
end