discourse/spec/models/top_menu_item_spec.rb

16 lines
291 B
Ruby

# frozen_string_literal: true
RSpec.describe TopMenuItem do
before do
SiteSetting.top_menu = 'categories|latest'
end
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