fix tests

This commit is contained in:
r888888888
2015-02-10 18:37:23 -08:00
parent c8541baf6b
commit 6233bfd40e
2 changed files with 3 additions and 3 deletions

View File

@@ -112,8 +112,7 @@ VCR.configure do |c|
c.default_cassette_options = { c.default_cassette_options = {
match_requests_on: [ match_requests_on: [
:method, :method
VCR.request_matchers.uri_without_param(:PHPSESSID)
] ]
} }
end end

View File

@@ -125,7 +125,8 @@ class DmailTest < ActiveSupport::TestCase
end end
should "notify the recipient he has mail" do 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 = dmail.to
recipient.reload recipient.reload
assert(recipient.has_mail?) assert(recipient.has_mail?)