Fix failing test
This commit is contained in:
parent
786fcceb62
commit
25dd045ba5
|
@ -35,6 +35,7 @@ describe ReviewableSerializer do
|
||||||
describe "urls" do
|
describe "urls" do
|
||||||
|
|
||||||
it "links to the flagged post" do
|
it "links to the flagged post" do
|
||||||
|
Discourse.stubs(:base_url).returns("http://test.localhost/subfolder")
|
||||||
fp = Fabricate(:reviewable_flagged_post)
|
fp = Fabricate(:reviewable_flagged_post)
|
||||||
json = described_class.new(fp, scope: Guardian.new(admin), root: nil).as_json
|
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)
|
expect(json[:target_url]).to eq(Discourse.base_url + fp.post.url)
|
||||||
|
|
Loading…
Reference in New Issue