spec/server/rack_adapter_spec.rb in yard-0.9.5 vs spec/server/rack_adapter_spec.rb in yard-0.9.6

- old
+ new

@@ -1,8 +1,9 @@ +# frozen_string_literal: true require File.dirname(__FILE__) + "/spec_helper" -describe "YARD::Server::RackMiddleware" do +RSpec.describe "YARD::Server::RackMiddleware" do before do begin; require 'rack'; rescue LoadError; pending "rack required for these tests" end @superapp = double(:superapp) @app = YARD::Server::RackMiddleware.new(@superapp, :libraries => {'foo' => [LibraryVersion.new('foo', nil)]}) end @@ -15,6 +16,6 @@ it "passes up to the next middleware on 404" do expect(@superapp).to receive(:call).and_return([200, {}, ['OK']]) expect(@app.call(Rack::MockRequest.env_for('/INVALID'))).to eq [200, {}, ['OK']] end -end \ No newline at end of file +end