FIX: user avatar urls need to be absolute in wordpress api

This commit is contained in:
Neil Lalonde
2014-05-29 17:19:49 -04:00
parent d69472c9fb
commit e6841d0849
4 changed files with 31 additions and 4 deletions

View File

@ -24,7 +24,7 @@ describe TopicsController do
post = json['posts'][0]
post['id'].should == p2.id
post['username'].should == user.username
post['avatar_template'].should == user.avatar_template
post['avatar_template'].should == "#{Discourse.base_url_no_prefix}#{user.avatar_template}"
post['name'].should == user.name
post['created_at'].should be_present
post['cooked'].should == p2.cooked
@ -34,7 +34,7 @@ describe TopicsController do
participant = json['participants'][0]
participant['id'].should == user.id
participant['username'].should == user.username
participant['avatar_template'].should == user.avatar_template
participant['avatar_template'].should == "#{Discourse.base_url_no_prefix}#{user.avatar_template}"
end
end