fixed unit tests

This commit is contained in:
albert
2012-01-15 14:40:36 -05:00
parent 69f76a1a41
commit 0887c35922
3 changed files with 7 additions and 6 deletions

View File

@@ -50,8 +50,9 @@ class DmailTest < ActiveSupport::TestCase
end
should "create a copy for each user" do
@new_user = Factory.create(:user)
assert_difference("Dmail.count", 2) do
Dmail.create_split(:to_id => @user.id, :title => "foo", :body => "foo")
Dmail.create_split(:to_id => @new_user.id, :title => "foo", :body => "foo")
end
end