spec/server/rack_adapter_spec.rb in yard-0.7.5 vs spec/server/rack_adapter_spec.rb in yard-0.8.0

- old
+ new

@@ -4,16 +4,16 @@ before do begin; require 'rack'; rescue LoadError; pending "rack required for these tests" end @superapp = mock(:superapp) @app = YARD::Server::RackMiddleware.new(@superapp, :libraries => {'foo' => [LibraryVersion.new('foo', nil)]}) end - + after(:all) { YARD::Server::Adapter.shutdown } - + it "should handle requests" do @app.call(Rack::MockRequest.env_for('/'))[0].should == 200 end - + it "should pass up to the next middleware on 404" do @superapp.should_receive(:call).and_return([200, {}, ['OK']]) @app.call(Rack::MockRequest.env_for('/INVALID')).should == [200, {}, ['OK']] end end \ No newline at end of file