Permalink
Browse files

Fix RackMiddleware tests for 1.8.x

  • Loading branch information...
1 parent efb0129 commit 9bf85bbc689da34b12e7857342e7d1a6f06de74e @lsegal committed Dec 22, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 spec/server/rack_adapter_spec.rb
@@ -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

0 comments on commit 9bf85bb

Please sign in to comment.