mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 11:53:55 +08:00
13 lines
281 B
Ruby
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
|