DEV: Apply syntax_tree formatting to spec/*

This commit is contained in:
David Taylor
2023-01-09 11:18:21 +00:00
parent 0cf6421716
commit cb932d6ee1
907 changed files with 58693 additions and 45909 deletions

View File

@ -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