Permalink
Browse files

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

  • Loading branch information...
jeremyf committed May 19, 2011
1 parent cc9fbe6 commit 5b2858ef3033779ac3237f037707f5e225f22596
Showing with 11 additions and 0 deletions.
  1. +11 −0 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

0 comments on commit 5b2858e

Please sign in to comment.