discourse/spec/models/top_menu_item_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
291 B
Ruby
Raw Normal View History

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