spec/mojito/rendering/status_codes_spec.rb in mojito-0.2.4 vs spec/mojito/rendering/status_codes_spec.rb in mojito-0.2.5
- old
+ new
@@ -11,19 +11,17 @@
subject do
Mojito::C.runtime_controller Mojito::R::StatusCodes do
on 'ok' do ok! end
on 'not_found' do not_found! end
on 'internal_server_error' do internal_server_error! end
- on 'unavailable' do unavailable! end
+ on 'service_unavailable' do service_unavailable! end
on 'redirect' do redirect! '/test' end
end.mock_request
end
it { subject.get('/ok').status.should == 200 }
it { subject.get('/not_found').status.should == 404 }
it { subject.get('/internal_server_error').status.should == 500 }
- it { subject.get('/unavailable').status.should == 503 }
+ it { subject.get('/service_unavailable').status.should == 503 }
it { subject.get('/redirect').should respond_with(302, 'Location' => '/test') }
-# it { subject.get('/redirect').status.should == 302 }
-# it { subject.get('/redirect').headers['Location'].should == '/test' }
end