diff --git a/test/unit/email_process_test.rb b/test/unit/email_process_test.rb index 240d9d3a8..0a7a94349 100644 --- a/test/unit/email_process_test.rb +++ b/test/unit/email_process_test.rb @@ -3,6 +3,16 @@ require 'test_helper' class EmailProcessTest < ActiveSupport::TestCase test 'process simple' do + + # needed to check correct behavior + Group.create_if_not_exists( + :id => 2, + :name => 'Twitter', + :note => 'All Tweets.', + :updated_by_id => 1, + :created_by_id => 1 + ) + files = [ { :data => 'From: me@example.com diff --git a/test/unit/twitter_test.rb b/test/unit/twitter_test.rb index 658610913..526860d2f 100644 --- a/test/unit/twitter_test.rb +++ b/test/unit/twitter_test.rb @@ -3,6 +3,15 @@ require 'test_helper' class TwitterTest < ActiveSupport::TestCase + # needed to check correct behavior + Group.create_if_not_exists( + :id => 2, + :name => 'Twitter', + :note => 'All Tweets.', + :updated_by_id => 1, + :created_by_id => 1 + ) + # app config consumer_key = 'd2zoZBmMXmT7KLPgEHSzpw' consumer_secret = 'QMUrlyDlqjITCkWdrOgsTxMVVLxr4A4IW3DIgtIg'