specs to account for new default letter avatar location

This commit is contained in:
Sam
2015-09-15 13:25:15 +10:00
parent 24520937aa
commit 83efde79f0
3 changed files with 9 additions and 0 deletions

View File

@@ -61,6 +61,7 @@ describe Onebox::Engine::DiscourseLocalOnebox do
end
it "returns some onebox goodness if post exists and can be seen" do
SiteSetting.external_system_avatars_enabled = false
url = "#{topic.url}"
Guardian.any_instance.stubs(:can_see?).returns(true)
html = Onebox.preview(url).to_s