attempt to fix fragile spec

This was failing in rails3 during CI, and I suspect it's because of a
database id happening to match the SIS value

Change-Id: I154ce3d3903077aa52d65875ba32489232c11bef
Reviewed-on: https://gerrit.instructure.com/31854
Reviewed-by: James Williams  <jamesw@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
QA-Review: Brian Palmer <brianp@instructure.com>
This commit is contained in:
Brian Palmer 2014-03-12 20:19:02 -06:00
parent 52e4cda38f
commit 2350f77b49
1 changed files with 2 additions and 2 deletions

View File

@ -1470,7 +1470,7 @@ describe CoursesController, type: :request do
describe "as a student" do
append_before do
@other_user = user_with_pseudonym(:name => 'Waldo', :username => 'dontfindme@example.com')
@other_user.pseudonym.update_attribute(:sis_user_id, '8675309')
@other_user.pseudonym.update_attribute(:sis_user_id, 'mysis_8675309')
@course1.enroll_student(@other_user).accept!
@user = user
@ -1512,7 +1512,7 @@ describe CoursesController, type: :request do
json = api_call(:get, "/api/v1/courses/#{@course1.to_param}/users",
{ :controller => 'courses', :action => 'users',
:course_id => @course1.to_param, :format => 'json' },
{ :search_term => '867' })
{ :search_term => 'mysis' })
json.should be_empty
end
end