Moved twitter to integration tests.
This commit is contained in:
parent
b316e24660
commit
e991dd067b
3 changed files with 11 additions and 8 deletions
|
@ -3,6 +3,11 @@ require 'integration_test_helper'
|
||||||
|
|
||||||
class OtrsImportTest < ActiveSupport::TestCase
|
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
|
# check settings items
|
||||||
test 'check settings' do
|
test 'check settings' do
|
||||||
assert_equal( '305', Setting.get('system_id'), 'system_id' )
|
assert_equal( '305', Setting.get('system_id'), 'system_id' )
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
require 'test_helper'
|
require 'integration_test_helper'
|
||||||
|
|
||||||
class TwitterTest < ActiveSupport::TestCase
|
class TwitterTest < ActiveSupport::TestCase
|
||||||
|
|
||||||
|
# set system mode to done / to activate
|
||||||
|
Setting.set('system_init_done', true)
|
||||||
|
|
||||||
# needed to check correct behavior
|
# needed to check correct behavior
|
||||||
Group.create_if_not_exists(
|
Group.create_if_not_exists(
|
||||||
:id => 2,
|
:id => 2,
|
|
@ -13,16 +13,11 @@ class ActiveSupport::TestCase
|
||||||
# load seeds
|
# load seeds
|
||||||
load "#{Rails.root}/db/seeds.rb"
|
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
|
setup do
|
||||||
|
|
||||||
# set current user
|
# set current user
|
||||||
#puts 'reset UserInfo.current_user_id'
|
puts 'reset UserInfo.current_user_id'
|
||||||
#UserInfo.current_user_id = nil
|
UserInfo.current_user_id = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
# Add more helper methods to be used by all tests here...
|
# Add more helper methods to be used by all tests here...
|
||||||
|
|
Loading…
Reference in a new issue