Moved twitter to integration tests.

This commit is contained in:
Martin Edenhofer 2014-12-01 13:06:15 +01:00
parent b316e24660
commit e991dd067b
3 changed files with 11 additions and 8 deletions

View file

@ -3,6 +3,11 @@ require 'integration_test_helper'
class OtrsImportTest < ActiveSupport::TestCase
Setting.set("import_otrs_endpoint", "http://vz305.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator")
Setting.set("import_otrs_endpoint_key", "01234567899876543210")
Setting.set("import_mode", true)
Import::OTRS2.start
# check settings items
test 'check settings' do
assert_equal( '305', Setting.get('system_id'), 'system_id' )

View file

@ -1,8 +1,11 @@
# encoding: utf-8
require 'test_helper'
require 'integration_test_helper'
class TwitterTest < ActiveSupport::TestCase
# set system mode to done / to activate
Setting.set('system_init_done', true)
# needed to check correct behavior
Group.create_if_not_exists(
:id => 2,

View file

@ -13,16 +13,11 @@ class ActiveSupport::TestCase
# load seeds
load "#{Rails.root}/db/seeds.rb"
Setting.set("import_otrs_endpoint", "http://vz305.demo.znuny.com/otrs/public.pl?Action=ZammadMigrator")
Setting.set("import_otrs_endpoint_key", "01234567899876543210")
Setting.set("import_mode", true)
Import::OTRS2.start
setup do
# set current user
#puts 'reset UserInfo.current_user_id'
#UserInfo.current_user_id = nil
puts 'reset UserInfo.current_user_id'
UserInfo.current_user_id = nil
end
# Add more helper methods to be used by all tests here...