Remove use of stubs in specs.

This commit is contained in:
Guo Xiang Tan 2017-07-07 13:18:53 +09:00
parent a4399c2eab
commit e7e16de3e0

View File

@ -1,7 +1,10 @@
require 'rails_helper'
describe TopMenuItem do
before(:each) { SiteSetting.stubs(:top_menu).returns('one,-nope|two|three,-not|four,ignored|category/xyz') }
before do
SiteSetting.top_menu = 'one,-nope|two|three,-not|four,ignored|latest|category/xyz'
end
let(:items) { SiteSetting.top_menu_items }
it 'has name' do