i think the ci app_config has some setup i am unaware of, so this makes it not depend on that setting
This commit is contained in:
parent
585ca4820b
commit
a1fdd3cdf9
1 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@ require 'spec_helper'
|
|||
describe AdminsController do
|
||||
render_views
|
||||
before do
|
||||
@user = alice
|
||||
@user = Factory :user
|
||||
sign_in :user, @user
|
||||
end
|
||||
|
||||
|
|
@ -14,7 +14,7 @@ describe AdminsController do
|
|||
|
||||
context 'admin signed in' do
|
||||
before do
|
||||
AppConfig[:admins] = [alice.username]
|
||||
AppConfig[:admins] = [@user.username]
|
||||
end
|
||||
|
||||
describe '#user_search' do
|
||||
|
|
|
|||
Loading…
Reference in a new issue