     |> Enamel.command(~w{bundle exec cap --trace production buildhost:mix:release})
     |> Enamel.run!
 
-    Enamel.new(on_failure: &flunk_for_reason/1, dir: dummy.capistrano_wd)
+    Enamel.new(on_failure: &flunk_for_reason/2, dir: dummy.capistrano_wd)
     |> Enamel.command(~w{bundle exec cap --trace production buildhost:archive:download})
     |> Enamel.run!
 

  end

  test "preparing the build path and compiling", %{dummy: dummy} do
    Enamel.new(on_failure: &flunk_for_reason/1, dir: dummy.capistrano_wd)
    |> Enamel.command(~w{bundle exec cap --trace production buildhost:prepare_build_path})
    |> Enamel.command(~w{bundle exec cap --trace production buildhost:compile})
    |> Enamel.run!

    |> Enamel.command(~w{bundle exec cap --trace production buildhost:mix:release})
    |> Enamel.run!

    Enamel.new(on_failure: &flunk_for_reason/2, dir: dummy.capistrano_wd)
    |> Enamel.command(~w{bundle exec cap --trace production buildhost:archive:download node:archive:upload_and_unpack})
    |> Enamel.run!

