mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +02:00
parent
296442e330
commit
487613db1e
14 changed files with 424 additions and 84 deletions
13
test/models/inactive_contacts_test.rb
Normal file
13
test/models/inactive_contacts_test.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue