Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1300420
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, Nov 19, 1:49 PM
Size
434 B
Mime Type
text/x-ruby
Expires
Fri, Nov 21, 1:49 PM (6 h, 10 m)
Engine
blob
Format
Raw Data
Handle
292730
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