Skip to content

Commit

Permalink
Assert proper return type from app.start task
Browse files Browse the repository at this point in the history
  • Loading branch information
José Valim committed Apr 8, 2015
1 parent b4c84d6 commit 2e97784
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/mix/lib/mix/tasks/app.start.ex
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ defmodule Mix.Tasks.App.Start do
if Process.whereis(Logger), do: Logger.App.stop()
start(Mix.Project.config, opts)
end

:ok
end

@doc false
Expand Down
2 changes: 1 addition & 1 deletion lib/mix/test/mix/tasks/app.start_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ defmodule Mix.Tasks.App.StartTest do
end

test "start does nothing if app is nil" do
assert Mix.Tasks.App.Start.start([app: nil], []) == []
assert Mix.Tasks.App.Start.start([app: nil], []) == :ok
end

test "allows type to be configured" do
Expand Down

0 comments on commit 2e97784

Please sign in to comment.