spec/http_spec.rb in alephant-broker-2.1.0 vs spec/http_spec.rb in alephant-broker-2.1.1

- old
+ new

@@ -2,11 +2,16 @@ describe Alephant::Broker::LoadStrategy::HTTP do subject { described_class.new(url_generator) } let(:component_meta) do - double('Alephant::Broker::ComponentMeta', cache_key: 'cache_key', id: 'test') + double( + 'Alephant::Broker::ComponentMeta', + cache_key: 'cache_key', + id: 'test', + options: {} + ) end let(:url_generator) { double(generate: "http://foo.bar") } let(:cache) { double('Alephant::Broker::Cache::Client') } let(:body) { '<h1>Batman!</h1>' } let(:content) do @@ -33,10 +38,9 @@ context "content not in cache" do before :each do allow(cache).to receive(:get).and_yield allow(component_meta).to receive(:'cached=').with(false) { false } - allow(component_meta).to receive(:raw_options).and_return Hash.new end context "and available over HTTP" do let(:env) { double('env', response_headers: response_headers) } let(:response_headers) { {'content-type' => 'text/html; test'} }