This commit is contained in:
r888888888
2014-03-05 17:47:40 -08:00
parent 56ae78f963
commit 37d75e4a88
3 changed files with 39 additions and 4 deletions

View File

@@ -32,6 +32,12 @@ class UserTest < ActiveSupport::TestCase
assert_equal("Promoted by #{CurrentUser.user.name} from Member to Gold", @user.feedback.last.body)
end
should "create a dmail" do
assert_difference("Dmail.count", 2) do
@user.promote_to!(User::Levels::GOLD)
end
end
end
context "favoriting a post" do