From 25dd045ba5ed2dc9073334f5ba0c74fa498ee92e Mon Sep 17 00:00:00 2001 From: Jeff Wong Date: Thu, 14 Nov 2019 16:11:42 -0800 Subject: [PATCH] Fix failing test --- spec/serializers/reviewable_serializer_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/serializers/reviewable_serializer_spec.rb b/spec/serializers/reviewable_serializer_spec.rb index ccce5182bf1..33a5c533bf5 100644 --- a/spec/serializers/reviewable_serializer_spec.rb +++ b/spec/serializers/reviewable_serializer_spec.rb @@ -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)