Convert specs to tests

#792
This commit is contained in:
Artur Beljajev 2018-04-02 09:13:53 +03:00
parent 7cca7b2976
commit d57c737a80
8 changed files with 69 additions and 112 deletions

View file

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