mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 00:17:17 +08:00
DEV: Apply syntax_tree formatting to spec/*
This commit is contained in:
@ -1,11 +1,10 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
RSpec.describe PublishedPage, type: :model do
|
||||
|
||||
fab!(:topic) { Fabricate(:topic) }
|
||||
|
||||
it "has path and url helpers" do
|
||||
pp = PublishedPage.create!(topic: topic, slug: 'hello-world')
|
||||
pp = PublishedPage.create!(topic: topic, slug: "hello-world")
|
||||
expect(pp.path).to eq("/pub/hello-world")
|
||||
expect(pp.url).to eq(Discourse.base_url + "/pub/hello-world")
|
||||
end
|
||||
@ -21,5 +20,4 @@ RSpec.describe PublishedPage, type: :model do
|
||||
expect(PublishedPage.new(topic: topic, slug: "check-slug")).not_to be_valid
|
||||
expect(PublishedPage.new(topic: topic, slug: "by-topic")).not_to be_valid
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user