discourse/spec/models/top_menu_item_spec.rb

13 lines
281 B
Ruby
Raw Normal View History

# frozen_string_literal: true
RSpec.describe TopMenuItem do
before { SiteSetting.top_menu = "categories|latest" }
2017-07-06 23:18:53 -05:00
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