spec/routes/oauth_spec.rb in osso-0.0.5.pre.kappa vs spec/routes/oauth_spec.rb in osso-0.0.5.pre.lambda
- old
+ new
@@ -46,20 +46,21 @@
end
end
describe 'for an enterprise domain with multiple SAML providers' do
it 'renders the multiple providers screen' do
- enterprise = create(:enterprise_with_multiple_providers)
+ enterprise = create(:enterprise_with_multiple_providers, oauth_client: client)
get(
'/oauth/authorize',
domain: enterprise.domain,
client_id: client.identifier,
response_type: 'code',
redirect_uri: client.redirect_uri_values.sample,
)
expect(last_response).to be_ok
+ expect(last_response.body).to eq("MULITPLE PROVIDERS")
end
end
end
end