Merge pull request #806 from internetee/registry-792

Registry 792
This commit is contained in:
Timo Võhmar 2018-04-17 16:23:48 +03:00 committed by GitHub
commit b27ce14aa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 170 additions and 147 deletions

View file

@ -0,0 +1,14 @@
require 'test_helper'
class DomainDeletableTest < ActiveSupport::TestCase
setup do
@domain = domains(:shop)
end
def test_discard
refute @domain.discarded?
@domain.discard
@domain.reload
assert @domain.discarded?
end
end