Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F462227
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, May 18, 8:53 PM
Size
645 B
Mime Type
text/x-diff
Expires
Tue, May 20, 8:53 PM (1 d, 2 h)
Engine
blob
Format
Raw Data
Handle
220554
Attached To
rWEBDNS WebDNS (edet4)
View Options
diff --git a/test/support/assertions.rb b/test/support/assertions.rb
index b672f57..83010a0 100644
--- a/test/support/assertions.rb
+++ b/test/support/assertions.rb
@@ -1,13 +1,19 @@
module Assertions
- def assert_serial_update(soa, message=nil)
+ def assert_serial_update(soa)
soa.reload
- assert_difference 'soa.serial', 1, message do
- yield
- soa.reload
- end
+
+ old = soa.serial
+ yield
+ soa.reload
+
+ assert soa.serial > old, "#{soa.serial} is not larger than #{old}!"
+ end
+
+ def freeze_time(&block)
+ travel_to(Time.now, &block)
end
end
ActiveSupport::TestCase.include Assertions
Event Timeline
Log In to Comment