mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 02:32:45 +08:00
Remove use of stubs in specs.
This commit is contained in:
parent
a4399c2eab
commit
e7e16de3e0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user