spec.rb in rack-cerberus-0.0.1 vs spec.rb in rack-cerberus-0.1.0

- old
+ new

@@ -19,10 +19,10 @@ res = req.post('/', :params => {'cerberus_login' => 'fake', 'cerberus_pass' => 'fake'}) res.status.should==401 end should 'Give access with the appropriate login and pass' do - res = req.post('/', :params => {'cerberus_login' => 'mario', 'cerberus_pass' => 'bros'}) + res = req.get('/', :params => {'cerberus_login' => 'mario', 'cerberus_pass' => 'bros'}) cookie = res["Set-Cookie"] res.status.should==200 end should 'Use session for persistent login' do \ No newline at end of file