Fixed unit tests.
This commit is contained in:
parent
7af8ec2679
commit
80ea7e5337
2 changed files with 19 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue