From d48e2ffd0f00f3681915ad4b2de493fad1cfdf4f Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 26 Jul 2018 09:04:03 +0200 Subject: [PATCH] Small improvement to test. --- test/integration/report_test.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/integration/report_test.rb b/test/integration/report_test.rb index 6e1d03721..2c6f4e560 100644 --- a/test/integration/report_test.rb +++ b/test/integration/report_test.rb @@ -1,4 +1,4 @@ -require 'integration_test_helper' +require 'test_helper' class ReportTest < ActiveSupport::TestCase include SearchindexHelper @@ -12,7 +12,7 @@ class ReportTest < ActiveSupport::TestCase rebuild_searchindex group1 = Group.lookup(name: 'Users') - group2 = Group.create_if_not_exists( + group2 = Group.create!( name: 'Report Test', updated_by_id: 1, created_by_id: 1 @@ -1353,8 +1353,6 @@ class ReportTest < ActiveSupport::TestCase assert(result) assert_nil(result[:ticket_ids][0]) - # cleanup - Rake::Task['searchindex:drop'].execute end end