Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1614971
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
Sat, Mar 21, 1:03 PM
Size
645 B
Mime Type
text/x-diff
Expires
Mon, Mar 23, 1:03 PM (1 d, 1 h)
Engine
blob
Format
Raw Data
Handle
351049
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