mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Fix failing test
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user