Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added second test to verify POST behavior to /auth/ldap.

  • Loading branch information...
commit 5b2858ef3033779ac3237f037707f5e225f22596 1 parent cc9fbe6
@jeremyf jeremyf authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 oa-enterprise/spec/omniauth/strategies/ldap_spec.rb
View
11 oa-enterprise/spec/omniauth/strategies/ldap_spec.rb
@@ -27,4 +27,15 @@ def strategy
last_response.status.should == 200
end
end
+
+ describe 'POST /auth/ldap' do
+ before do
+ post '/auth/ldap', {:username => 'jeremy', :password => 'valid_password' }
+ end
+
+ it 'should redirect us to /auth/ldap/callback' do
+ last_response.should be_redirect
+ last_response.location.should == '/auth/ldap/callback'
+ end
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.