spec: make populate_root_account spec less flaky
Change-Id: Id3e1d88c0ed376713eb106b65cc4b7ecbe2878d1 Reviewed-on: https://gerrit.instructure.com/146427 Tested-by: Jenkins Reviewed-by: Simon Williams <simon@instructure.com> Product-Review: James Williams <jamesw@instructure.com> QA-Review: James Williams <jamesw@instructure.com>
This commit is contained in:
parent
7ca38927db
commit
1b813e5240
|
@ -49,7 +49,7 @@ describe DataFixup::PopulateRootAccountIdOnUserObservers do
|
|||
pseudonym(@observer, :account => new_account)
|
||||
UserObservationLink.create!(:student => @student, :observer => @observer, :root_account => new_account)
|
||||
described_class.run
|
||||
ra_ids = UserObservationLink.where(:student => @student, :observer => @observer).pluck(:root_account_id)
|
||||
ra_ids = UserObservationLink.active.where(:student => @student, :observer => @observer).pluck(:root_account_id)
|
||||
expect(ra_ids).to match_array([Account.default.id, new_account.id])
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue