This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/spec/models/top_menu_item_spec.rb
2023-01-09 11:49:28 +00:00

13 lines
281 B
Ruby

# frozen_string_literal: true
RSpec.describe TopMenuItem do
before { SiteSetting.top_menu = "categories|latest" }
let(:items) { SiteSetting.top_menu_items }
it "has name" do
expect(items[0].name).to eq("categories")
expect(items[1].name).to eq("latest")
end
end