mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 22:04:03 +08:00
9 lines
274 B
Ruby
9 lines
274 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
RSpec.describe SidebarUrl do
|
||
|
it "validates path" do
|
||
|
expect(SidebarUrl.new(name: "categories", value: "/categories").valid?).to eq(true)
|
||
|
expect(SidebarUrl.new(name: "categories", value: "/invalid_path").valid?).to eq(false)
|
||
|
end
|
||
|
end
|