From 6233bfd40ee32489c7dc11cb29f78c2a955e9d16 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Tue, 10 Feb 2015 18:37:23 -0800 Subject: [PATCH] fix tests --- test/test_helper.rb | 3 +-- test/unit/dmail_test.rb | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index 425c47b3f..92bba422f 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -112,8 +112,7 @@ VCR.configure do |c| c.default_cassette_options = { match_requests_on: [ - :method, - VCR.request_matchers.uri_without_param(:PHPSESSID) + :method ] } end diff --git a/test/unit/dmail_test.rb b/test/unit/dmail_test.rb index 28b58f35d..bcd8a2a7d 100644 --- a/test/unit/dmail_test.rb +++ b/test/unit/dmail_test.rb @@ -125,7 +125,8 @@ class DmailTest < ActiveSupport::TestCase end should "notify the recipient he has mail" do - dmail = FactoryGirl.create(:dmail, :owner => @user) + @recipient = FactoryGirl.create(:user) + dmail = FactoryGirl.create(:dmail, :owner => @recipient) recipient = dmail.to recipient.reload assert(recipient.has_mail?)