Undo of setup method.

This commit is contained in:
Martin Edenhofer 2016-01-26 16:43:36 +01:00
parent 68f32ab223
commit 6c541b3548
2 changed files with 88 additions and 92 deletions

View file

@ -3,8 +3,6 @@ require 'integration_test_helper'
class ElasticsearchTest < ActiveSupport::TestCase class ElasticsearchTest < ActiveSupport::TestCase
setup do
# set config # set config
if !ENV['ES_URL'] if !ENV['ES_URL']
fail "ERROR: Need ES_URL - hint ES_URL='http://172.0.0.1:9200'" fail "ERROR: Need ES_URL - hint ES_URL='http://172.0.0.1:9200'"
@ -94,7 +92,6 @@ class ElasticsearchTest < ActiveSupport::TestCase
updated_by_id: 1, updated_by_id: 1,
created_by_id: 1, created_by_id: 1,
) )
end
# check tickets and search it # check tickets and search it
test 'a - tickets' do test 'a - tickets' do

View file

@ -734,7 +734,6 @@ class ReportTest < ActiveSupport::TestCase
params: { field: 'created_at' }, params: { field: 'created_at' },
) )
assert(result) assert(result)
puts "r #{result.inspect}"
assert_equal(ticket7.id, result[:ticket_ids][0].to_i) assert_equal(ticket7.id, result[:ticket_ids][0].to_i)
assert_equal(ticket6.id, result[:ticket_ids][1].to_i) assert_equal(ticket6.id, result[:ticket_ids][1].to_i)
assert_equal(ticket5.id, result[:ticket_ids][2].to_i) assert_equal(ticket5.id, result[:ticket_ids][2].to_i)