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

@ -27,6 +27,8 @@ describe TopicsController do
let!(:p2) { Fabricate(:post, topic: topic, user:user )}
it "returns the JSON in the format our wordpress plugin needs" do
SiteSetting.external_system_avatars_enabled = false
xhr :get, :wordpress, topic_id: topic.id, best: 3
expect(response).to be_success
json = ::JSON.parse(response.body)