Use setup/teardown blocks instead of methods

This commit is contained in:
Artur Beljajev 2018-04-04 01:42:59 +03:00
parent b1e0371188
commit f8eda810f9
29 changed files with 29 additions and 29 deletions

View file

@ -1,7 +1,7 @@
require 'test_helper'
class ContactTest < ActiveSupport::TestCase
def setup
setup do
@contact = contacts(:john)
end

View file

@ -12,7 +12,7 @@ class ContactIdenticalTest < ActiveSupport::TestCase
org_name
]
def setup
setup do
@contact = contacts(:william)
@identical = contacts(:identical_to_william)
end

View file

@ -1,7 +1,7 @@
require 'test_helper'
class ContactPostalAddressTest < ActiveSupport::TestCase
def setup
setup do
@contact = contacts(:john)
end

View file

@ -1,7 +1,7 @@
require 'test_helper'
class ContactTransferTest < ActiveSupport::TestCase
def setup
setup do
@contact = contacts(:john)
@new_registrar = registrars(:goodnames)
end