Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F2571746
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, Jun 10, 9:02 PM
Size
306 B
Mime Type
text/x-ruby
Expires
Fri, Jun 12, 9:02 PM (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
377627
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