spec fix invalid user creations

users should only be on root_accounts

refs CNVS-21700

Change-Id: I0e54a0dd6faedfa5fdfadb728637ffb0a2413b53
Reviewed-on: https://gerrit.instructure.com/57695
Reviewed-by: James Williams  <jamesw@instructure.com>
Tested-by: Jenkins
Product-Review: Jacob Fugal <jacob@instructure.com>
QA-Review: Jacob Fugal <jacob@instructure.com>
This commit is contained in:
Rob Orton 2015-07-02 20:01:45 -06:00 committed by Jacob Fugal
parent c85864c543
commit 8e29951717
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ describe Lti::LtiUserCreator do
sub_account = Account.create!
sub_account.root_account = root_account
sub_account.save!
pseudonym = pseudonym(canvas_user, account: sub_account, username: 'login_id')
pseudonym = pseudonym(canvas_user, account: sub_account.root_account, username: 'login_id')
pseudonym.sis_user_id = 'sis id!'
pseudonym.save!