Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F906993
cname_test.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
Sat, Aug 30, 12:21 PM
Size
370 B
Mime Type
text/x-ruby
Expires
Mon, Sep 1, 12:21 PM (1 d, 7 h)
Engine
blob
Format
Raw Data
Handle
253753
Attached To
rWEBDNS WebDNS (edet4)
cname_test.rb
View Options
require
'test_helper'
class
CnameTest
<
ActiveSupport
::
TestCase
setup
do
@record
=
build
(
:cname
)
end
test
'save'
do
@record
.
save
assert_empty
@record
.
errors
end
test
'chop terminating dot'
do
@record
.
content
=
'with-dot.example.com.'
@record
.
save!
@record
.
reload
assert_equal
'with-dot.example.com'
,
@record
.
content
end
end
Event Timeline
Log In to Comment