discourse/spec/models/sidebar_url_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
328 B
Ruby
Raw Normal View History

# 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