diff options
Diffstat (limited to 'engines/support/test/functional')
-rw-r--r-- | engines/support/test/functional/ticket_comments_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/support/test/functional/ticket_comments_test.rb b/engines/support/test/functional/ticket_comments_test.rb index 5cbe233..c6c143a 100644 --- a/engines/support/test/functional/ticket_comments_test.rb +++ b/engines/support/test/functional/ticket_comments_test.rb @@ -1,4 +1,4 @@ -require 'test_helper' +require_relative '../test_helper' class TicketsCommentsTest < ActionController::TestCase tests TicketsController @@ -67,9 +67,9 @@ class TicketsCommentsTest < ActionController::TestCase test "admin add comment to authenticated ticket" do - - other_user = find_record :user login :is_admin? => true + admin = find_record :user, @current_user + other_user = find_record :user ticket = FactoryGirl.create :ticket, :created_by => other_user.id |