mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 23:20:33 +08:00
16 lines
278 B
Ruby
16 lines
278 B
Ruby
require 'rails_helper'
|
|
|
|
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
|