Use gb and bytes units

This commit is contained in:
Diana Corbacho 2017-07-14 10:14:25 +01:00
parent 4383c3e280
commit 070ac897cc
1 changed files with 2 additions and 2 deletions

View File

@ -53,11 +53,11 @@ defmodule MemoryBreakdownCommandTest do
end
test "validate: specifying gigabytes as a --unit succeeds", context do
assert @command.validate([], Map.merge(context[:opts], %{unit: "mb"})) == :ok
assert @command.validate([], Map.merge(context[:opts], %{unit: "gb"})) == :ok
end
test "validate: specifying bytes as a --unit succeeds", context do
assert @command.validate([], Map.merge(context[:opts], %{unit: "mb"})) == :ok
assert @command.validate([], Map.merge(context[:opts], %{unit: "bytes"})) == :ok
end
test "validate: specifying megabytes as a --unit succeeds", context do