         end
 
         before :each do
-          allow(Microbrew.Consumer, [:no_link, :passthrough])
-            |> to_receive(new: fn (_, _, _) -> {:ok, consumer} end)
+          allow(Microbrew.Consumer)
+            |> to_receive(new: fn (_, _, _, _) -> {:ok, consumer} end)
 
           allow(Microbrew.Agent, [:no_link, :passthrough])
             |> to_receive(stop: fn(a) -> a end)


        expect Microbrew.Consumer
          |> to_have_received :new
          |> with ["exchange", "queue", "queue_error"]

        expect sample.consumer
          |> to_eq consumer

      before :each do
        allow(Microbrew.Agent, [:no_link, :passthrough])
        allow(Microbrew.Consumer)
          |> to_receive(new: fn (_, _, _, _) -> {:ok, consumer} end)
        :ok
      end

