blob: 88dc6814fed85bae70f6fe9173ad8edf29609f6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
require 'test_helper'
class AccountExtensionTest < ActiveSupport::TestCase
setup do
InviteCodeValidator.any_instance.stubs(:validate)
end
test "destroying an account triggers ticket destruction" do
t = FactoryBot.create :ticket_with_creator
u = t.created_by_user
Account.new(u).destroy
assert_nil Ticket.find(t.id)
end
end
|