spec.rb in rack-cerberus-0.1.5 vs spec.rb in rack-cerberus-0.1.6
- old
+ new
@@ -20,9 +20,10 @@
end
should 'Stop request if you are not already logged in or currently successfully logging' do
res = req.get('/')
res.status.should==401
+ res.body.class==String
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
\ No newline at end of file