discourse/spec/models/top_menu_item_spec.rb

18 lines
309 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require 'rails_helper'
describe TopMenuItem do
2017-07-06 23:18:53 -05:00
before do
2018-04-26 02:22:09 -05:00
SiteSetting.top_menu = 'categories|latest'
2017-07-06 23:18:53 -05:00
end
let(:items) { SiteSetting.top_menu_items }
it 'has name' do
2018-04-26 02:22:09 -05:00
expect(items[0].name).to eq('categories')
expect(items[1].name).to eq('latest')
end
end