Fix failing test

This commit is contained in:
Jeff Wong 2019-11-14 16:11:42 -08:00
parent 786fcceb62
commit 25dd045ba5
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ describe ReviewableSerializer do
describe "urls" do
it "links to the flagged post" do
Discourse.stubs(:base_url).returns("http://test.localhost/subfolder")
fp = Fabricate(:reviewable_flagged_post)
json = described_class.new(fp, scope: Guardian.new(admin), root: nil).as_json
expect(json[:target_url]).to eq(Discourse.base_url + fp.post.url)