mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 04:45:43 +08:00
FIX: Broken spec which was brittle
This commit is contained in:
parent
2258dbd232
commit
1ffa448154
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user