   end
 
   test "preparing the build path and compiling", %{dummy: dummy} do
-    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:prepare_build_path})
     |> Enamel.command(~w{bundle exec cap --trace production buildhost:compile})
     |> Enamel.run!

    |> Enamel.command([~w{mkdir -p}, "#{dummy.build_path}/deps/foo"])
    |> Enamel.run!

    Enamel.new(on_failure: &flunk_for_reason/1, dir: dummy.capistrano_wd)
    |> Enamel.command(~w{bundle exec cap --trace production buildhost:clean:keepdeps})
    |> Enamel.command(~w{bundle exec cap --trace production buildhost:clean:keepdeps})
    |> Enamel.run!

    |> Enamel.command([:touch, dummy.build_path])
    |> Enamel.run!

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