app/models/canvas/logins.rb
# Get the account's Logins and find the appropriate one to change.
#    GET /api/v1/users/sis_login_id:anldapuid/logins
#   [{"account_id":1,"id":1040,"sis_user_id":"old_sis_id","unique_id":"anldapuid","user_id":1041}]
# or
#   [{"account_id":90242,"id":2963066,"sis_user_id":"211159","unique_id":"211159","user_id":3057506},
#    {"account_id":90242,"id":4592428,"sis_user_id":null,"unique_id":"raydavis-testlogin","user_id":3057506}]
Get the account's Logins and find the appropriate one to change.
Get the account ' s Logins and find the appropriate one to change .
def mock_interactions
      on_request(uri_matching: "#{api_root}/users/", method: :get)
        .respond_with_file('fixtures', 'json', 'canvas_user_logins.json')
      on_request(uri_matching: "#{api_root}/accounts/#{settings.account_id}/logins/", method: :put)
        .respond_with_file('fixtures', 'json', 'canvas_put_login_sis_user_id.json')
    end
def mock_interactions on_request ( uri_matching : "#{api_root}/users/" , method : :get ) . respond_with_file ( 'fixtures' , 'json' , 'canvas_user_logins.json' ) on_request ( uri_matching : "#{api_root}/accounts/#{settings.account_id}/logins/" , method : :put ) . respond_with_file ( 'fixtures' , 'json' , 'canvas_put_login_sis_user_id.json' ) end
Get the account's Logins and find the appropriate one to change.
Get the account ' s Logins and find the appropriate one to change .