From 1725bf77a7bbfb17665647eda08dffa4bc56eaf5 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 12 Apr 2013 21:09:41 +1000 Subject: [PATCH] fix build --- spec/models/post_action_spec.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/spec/models/post_action_spec.rb b/spec/models/post_action_spec.rb index 93b3ba37b4b..6d80f1db530 100644 --- a/spec/models/post_action_spec.rb +++ b/spec/models/post_action_spec.rb @@ -14,17 +14,16 @@ describe PostAction do let(:bookmark) { PostAction.new(user_id: post.user_id, post_action_type_id: PostActionType.types[:bookmark] , post_id: post.id) } describe "messaging" do - it "sends an email to all moderators if selected" do + it "sends an email to all moderators if selected" do PostAction.stubs(:create) PostAction.expects(:target_moderators).returns("bob") - PostCreator.any_instance.expects(:create).returns(nil) + PostCreator.any_instance.expects(:create).returns(nil) PostAction.act(build(:user), build(:post), PostActionType.types[:notify_moderators], "this is my special message"); end - - it "sends an email to user if selected" do + + it "sends an email to user if selected" do PostAction.stubs(:create) - PostAction.expects(:target_moderators).returns("bob") - PostCreator.any_instance.expects(:create).returns(nil) + PostCreator.any_instance.expects(:create).returns(nil) post = build(:post) post.user = build(:user) PostAction.act(build(:user), post, PostActionType.types[:notify_user], "this is my special message");