Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F5402343
assertions.rb
No One
Temporary
Actions
Download 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
Wed, Sep 9, 9:29 PM
Size
306 B
Mime Type
text/x-ruby
Expires
Fri, Sep 11, 9:29 PM (2 h, 23 m)
Engine
blob
Format
Raw Data
Handle
448204
Attached To
rWEBDNS WebDNS (edet4)
assertions.rb
View Options
module
Assertions
def
assert_serial_update
(
soa
)
soa
.
reload
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