Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1300556
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
Wed, Nov 19, 2:19 PM
Size
370 B
Mime Type
text/x-ruby
Expires
Fri, Nov 21, 2:19 PM (4 h, 5 m)
Engine
blob
Format
Raw Data
Handle
292957
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