mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 23:33:45 +08:00
6e1f3e0023
Improvements for this PR: https://github.com/discourse/discourse/pull/20057 What was fixed: - [x] Use ember transitions instead of full reload - [x] Link was inaccurately kept active - [x] "+ save" renamed to just "save" - [x] Render emojis in link name - [x] UI to set icon - [x] Delete link is trash icon instead of "x" - [x] Add another link to on the left and rewording - [x] Raname "link name" -> "name", "points to" -> link - [x] Add limits to fields - [x] Move add section button to the bottom
13 lines
328 B
Ruby
13 lines
328 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec.describe SidebarUrl do
|
|
it "validates path" do
|
|
expect(SidebarUrl.new(icon: "link", name: "categories", value: "/categories").valid?).to eq(
|
|
true,
|
|
)
|
|
expect(SidebarUrl.new(icon: "link", name: "categories", value: "/invalid_path").valid?).to eq(
|
|
false,
|
|
)
|
|
end
|
|
end
|