fix tests

This commit is contained in:
r888888888
2014-12-03 14:07:42 -08:00
parent d7f044e18b
commit 02c07fefb2
3 changed files with 2 additions and 13 deletions

View File

@@ -74,17 +74,6 @@ class UserNameChangeRequestTest < ActiveSupport::TestCase
end
context "creating a new request" do
should "send dmails to the admin" do
assert_difference("Dmail.count", 2) do
UserNameChangeRequest.create(
:user_id => @requester.id,
:original_name => @requester.name,
:status => "pending",
:desired_name => "abc"
)
end
end
should "not validate if the desired name already exists" do
assert_difference("UserNameChangeRequest.count", 0) do
req = UserNameChangeRequest.create(