spec/routes/auth_spec.rb in osso-0.0.11 vs spec/routes/auth_spec.rb in osso-0.1.0

- old
+ new

@@ -4,16 +4,17 @@ describe Osso::Auth do before do described_class.set(:views, spec_views) end - describe 'get /auth/saml/:uuid' do + + describe 'post /auth/saml/:uuid' do describe 'for an Okta SAML provider' do let(:enterprise) { create(:enterprise_with_okta) } let(:okta_provider) { enterprise.identity_providers.first } it 'uses omniauth saml' do - get("/auth/saml/#{okta_provider.id}") + post("/auth/saml/#{okta_provider.id}") expect(last_response).to be_redirect follow_redirect! expect(last_request.url).to match("auth/saml/#{okta_provider.id}") end @@ -21,17 +22,18 @@ describe 'for an Azure SAML provider' do let(:enterprise) { create(:enterprise_with_okta) } let(:azure_provider) { enterprise.identity_providers.first } it 'uses omniauth saml' do - get("/auth/saml/#{azure_provider.id}") + post("/auth/saml/#{azure_provider.id}") expect(last_response).to be_redirect follow_redirect! expect(last_request.url).to match("auth/saml/#{azure_provider.id}") end end end + describe 'post /auth/saml/:uuid/callback' do describe 'for an Okta SAML provider' do let(:enterprise) { create(:enterprise_with_okta) } let(:okta_provider) { enterprise.identity_providers.first }