Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F449063
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
Thu, Apr 24, 2:07 PM
Size
370 B
Mime Type
text/x-ruby
Expires
Sat, Apr 26, 2:07 PM (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
212488
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