spec/response_factory_spec.rb in alephant-broker-0.1.5 vs spec/response_factory_spec.rb in alephant-broker-0.1.6

- old
+ new

@@ -1,11 +1,11 @@ require 'spec_helper' describe Alephant::Broker::ResponseFactory do describe "#response_from(request)" do let (:request) { double("Alephant::Broker::Request") } - let (:post_request) { double("Alephant::Broker::PostRequest") } + let (:post_request) { double("Alephant::Broker::PostRequest").as_null_object } it "should return asset response" do instance = Alephant::Broker::ResponseFactory.new({}) allow(request).to receive(:type).and_return(:asset) @@ -32,10 +32,9 @@ }) Alephant::Broker::AssetResponse .any_instance .stub(:initialize) - .with(post_request, {}) expect(instance.response_from(post_request)) .to be_a Alephant::Broker::BatchResponse end