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

This commit is contained in:
Jeremy Friesen 2011-05-19 13:26:10 -04:00
parent cc9fbe6a46
commit 5b2858ef30
1 changed files with 11 additions and 0 deletions

View File

@ -27,4 +27,15 @@ describe OmniAuth::Strategies::LDAP, :type => :strategy do
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