mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Remove use of stubs in specs.
This commit is contained in:
parent
a4399c2eab
commit
e7e16de3e0
@ -1,7 +1,10 @@
|
|||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
describe TopMenuItem do
|
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 }
|
let(:items) { SiteSetting.top_menu_items }
|
||||||
|
|
||||||
it 'has name' do
|
it 'has name' do
|
||||||
|
Loading…
Reference in New Issue
Block a user