Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F5131313
ns_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
Mon, Aug 17, 2:06 PM
Size
517 B
Mime Type
text/x-ruby
Expires
Wed, Aug 19, 2:06 PM (1 d, 16 h)
Engine
blob
Format
Raw Data
Handle
395708
Attached To
rWEBDNS WebDNS (edet4)
ns_test.rb
View Options
require
'test_helper'
class
NSTest
<
ActiveSupport
::
TestCase
setup
do
@record
=
build
(
:ns
)
end
test
'save'
do
@record
.
save
assert_empty
@record
.
errors
end
test
'drop privileges on zone NS records'
do
@record
.
drop_privileges
=
true
@record
.
save
assert_not_empty
@record
.
errors
[
:name
]
end
test
'doesnt drop privileges on non zone NS records'
do
@record
.
name
=
'other'
@record
.
drop_privileges
=
true
@record
.
save
assert_empty
@record
.
errors
[
:name
]
end
end
Event Timeline
Log In to Comment