From 1ffa448154f32a80dea89826e067873015ffd2ee Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 12 Apr 2016 16:09:29 -0400 Subject: [PATCH] FIX: Broken spec which was brittle --- spec/components/post_creator_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/components/post_creator_spec.rb b/spec/components/post_creator_spec.rb index 762649bc83a..1b3c59399ad 100644 --- a/spec/components/post_creator_spec.rb +++ b/spec/components/post_creator_spec.rb @@ -447,7 +447,7 @@ describe PostCreator do raw: raw, cooking_options: { traditional_markdown_linebreaks: true }) - Post.any_instance.expects(:cook).with(raw, has_key(:traditional_markdown_linebreaks)).twice.returns(raw) + Post.any_instance.expects(:cook).with(raw, has_key(:traditional_markdown_linebreaks)).returns(raw) creator.create end end