Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F5134498
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
Mon, Aug 17, 7:40 PM
Size
434 B
Mime Type
text/x-ruby
Expires
Wed, Aug 19, 7:40 PM (1 d, 5 h)
Engine
blob
Format
Raw Data
Handle
376377
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
def
assert_jobs
max_id
=
Job
.
maximum
(
:id
)
||
0
yield
assert
Job
.
maximum
(
:id
)
>
max_id
,
'No jobs inserted!'
end
end
ActiveSupport
::
TestCase
.
include
Assertions
Event Timeline
Log In to Comment