fix broken build

hack to allow for PMs with no users for flagging needs
This commit is contained in:
Sam
2013-09-06 18:03:30 +10:00
parent 32e3e3f382
commit 641c51367a
3 changed files with 7 additions and 7 deletions

View File

@@ -43,7 +43,7 @@ describe PostAction do
PostAction.stubs(:create)
end
it "sends an email to community if selected" do
it "creates a pm if selected" do
post = build(:post, id: 1000)
PostCreator.any_instance.expects(:create).returns(post)
PostAction.act(build(:user), build(:post), PostActionType.types[:notify_moderators], message: "this is my special message");