Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix RackMiddleware tests for 1.8.x

  • Loading branch information...
commit 9bf85bbc689da34b12e7857342e7d1a6f06de74e 1 parent efb0129
Loren Segal authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 spec/server/rack_adapter_spec.rb
5 spec/server/rack_adapter_spec.rb
View
@@ -1,9 +1,10 @@
require File.dirname(__FILE__) + "/spec_helper"
-describe YARD::Server::RackMiddleware do
+describe "YARD::Server::RackMiddleware" do
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)]})
+ @app = YARD::Server::RackMiddleware.new(@superapp, :libraries => {'foo' => [LibraryVersion.new('foo', nil)]})
end
it "should handle requests" do
Please sign in to comment.
Something went wrong with that request. Please try again.