summaryrefslogtreecommitdiff
path: root/help/test/unit/account_extension_test.rb
blob: aba162ca233ed9364baaafbf70a02ada2590b50c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require 'test_helper'

class AccountExtensionTest < ActiveSupport::TestCase

  test "destroying an account triggers ticket destruction" do
    t = FactoryGirl.create :ticket_with_creator
    u = t.created_by_user
    Account.new(u).destroy
    assert_equal nil, Ticket.find(t.id)
  end

end