mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 21:54:48 +02:00
13 lines
No EOL
322 B
Ruby
13 lines
No EOL
322 B
Ruby
require 'test_helper'
|
|
|
|
class InactiveContactsTest < ActiveSupport::TestCase
|
|
def test_archives_inactive_contacts
|
|
contact_mock = Minitest::Mock.new
|
|
contact_mock.expect(:archive, nil)
|
|
|
|
inactive_contacts = InactiveContacts.new([contact_mock])
|
|
inactive_contacts.archive
|
|
|
|
assert_mock contact_mock
|
|
end
|
|
end |