From 9d1c6d33645196df697f2733860d23f0bb39b1c4 Mon Sep 17 00:00:00 2001 From: elijah Date: Fri, 22 May 2015 14:24:22 -0700 Subject: fix failing test --- engines/support/test/functional/ticket_comments_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/support/test/functional/ticket_comments_test.rb') 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 -- cgit v1.2.3