spec/blobby/http_store_spec.rb in blobby-1.1.0 vs spec/blobby/http_store_spec.rb in blobby-1.1.1

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require "spec_helper" require "ostruct" require "blobby/http_store" require "blobby/in_memory_store" @@ -8,11 +10,11 @@ require "sham_rack" describe Blobby::HttpStore do let(:backing_store) do - Hash.new + {} end class FakeStorageService < Sinatra::Base set :show_exceptions, false @@ -56,10 +58,10 @@ end let(:http_storage_host) { "storeit.com" } before do - ShamRack.mount(fake_storage_service, http_storage_host) + ShamRack.at(http_storage_host).mount(fake_storage_service) end after do ShamRack.unmount_all end