Skip to content
This repository has been archived by the owner on Mar 6, 2018. It is now read-only.

Commit

Permalink
Fix ticket activity test
Browse files Browse the repository at this point in the history
  • Loading branch information
philtr committed Feb 19, 2014
1 parent e6f05a0 commit 3210c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/models/ticket_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class TicketTest < ActiveSupport::TestCase
@ticket.update_column(:status, :open)
create(:comment, ticket: @ticket)

assert_equal [Comment, PaperTrail::Version].to_set, @ticket.activity.map(&:class).uniq.to_set
assert_equal [Comment, PaperTrail::Version].to_set, @ticket.reload.activity.map(&:class).uniq.to_set
end

should "set status to 'pending' on create" do
Expand Down

0 comments on commit 3210c4c

Please sign in to comment.