2015-10-11 05:41:23 -04:00
|
|
|
require 'rails_helper'
|
2013-06-21 16:31:40 -04:00
|
|
|
|
|
|
|
describe TopMenuItem do
|
2017-07-07 00:18:53 -04:00
|
|
|
before do
|
2018-04-26 03:22:09 -04:00
|
|
|
SiteSetting.top_menu = 'categories|latest'
|
2017-07-07 00:18:53 -04:00
|
|
|
end
|
|
|
|
|
2013-06-21 16:31:40 -04:00
|
|
|
let(:items) { SiteSetting.top_menu_items }
|
|
|
|
|
|
|
|
it 'has name' do
|
2018-04-26 03:22:09 -04:00
|
|
|
expect(items[0].name).to eq('categories')
|
|
|
|
expect(items[1].name).to eq('latest')
|
2013-06-21 16:31:40 -04:00
|
|
|
end
|
|
|
|
|
2014-01-31 08:36:00 -05:00
|
|
|
end
|