spec/bearcat/client/accounts_spec.rb in bearcat-1.3.13 vs spec/bearcat/client/accounts_spec.rb in bearcat-1.3.14

- old
+ new

@@ -72,13 +72,14 @@ it 'deletes an account admin' do stub_delete(@client, "/api/v1/accounts/1/admins/sis_user_id:user1_sis_id?role_id=1").to_return(json_response("account_admin_delete.json")) account_admin = @client.delete_account_admin(1, "sis_user_id:user1_sis_id", {role_id:1}) expect(account_admin['id']).to eq 99 expect(account_admin['status']).to eq 'deleted' + end it 'returns a list of sis_imports' do stub_get(@client, "/api/v1/accounts/1/sis_imports").to_return(json_response("account_sis_imports.json")) - sis_imports = @client.account_sis_imports(1) + sis_imports = @client.account_sis_imports(1)['sis_imports'] expect(sis_imports.first['id']).to eq 30 expect(sis_imports.first['workflow_state']).to eq 'imported' end end