spec/http_spec.rb in alephant-broker-2.0.1 vs spec/http_spec.rb in alephant-broker-2.0.2

- old
+ new

@@ -33,11 +33,11 @@ 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(:options).and_return Hash.new + 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'} } @@ -57,10 +57,10 @@ end end context "and HTTP request fails" do before :each do - allow(Faraday).to receive(:get).and_raise + allow(Faraday).to receive(:get).and_raise end specify do expect do subject.load component_meta