Small improvement to test.
This commit is contained in:
parent
699804f945
commit
d48e2ffd0f
1 changed files with 2 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
require 'integration_test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ReportTest < ActiveSupport::TestCase
|
class ReportTest < ActiveSupport::TestCase
|
||||||
include SearchindexHelper
|
include SearchindexHelper
|
||||||
|
@ -12,7 +12,7 @@ class ReportTest < ActiveSupport::TestCase
|
||||||
rebuild_searchindex
|
rebuild_searchindex
|
||||||
|
|
||||||
group1 = Group.lookup(name: 'Users')
|
group1 = Group.lookup(name: 'Users')
|
||||||
group2 = Group.create_if_not_exists(
|
group2 = Group.create!(
|
||||||
name: 'Report Test',
|
name: 'Report Test',
|
||||||
updated_by_id: 1,
|
updated_by_id: 1,
|
||||||
created_by_id: 1
|
created_by_id: 1
|
||||||
|
@ -1353,8 +1353,6 @@ class ReportTest < ActiveSupport::TestCase
|
||||||
assert(result)
|
assert(result)
|
||||||
assert_nil(result[:ticket_ids][0])
|
assert_nil(result[:ticket_ids][0])
|
||||||
|
|
||||||
# cleanup
|
|
||||||
Rake::Task['searchindex:drop'].execute
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue