1
0
mirror of https://github.com/avitex/elixir-vultr synced 2024-12-22 00:29:57 +00:00

Fix upcase error and test

This commit is contained in:
avitex 2017-07-30 19:53:23 +10:00
parent 8279a50c92
commit e0160c5701
3 changed files with 4 additions and 5 deletions

View File

@ -95,7 +95,7 @@ defmodule Vultr.Request do
end) end)
if is_special_param do if is_special_param do
{String.upcase(k), v} {k |> Atom.to_string |> String.upcase, v}
else else
{k, v} {k, v}
end end
@ -172,7 +172,7 @@ defmodule Vultr.Request do
raise ArgumentError, message: "Bad method" raise ArgumentError, message: "Bad method"
end end
method |> Atom.to_string |> String.upcase() method |> Atom.to_string |> String.upcase
end end
defp doc_api_key(nil), do: "No" defp doc_api_key(nil), do: "No"

View File

@ -8,7 +8,7 @@ defmodule Vultr.Mixfile do
def project do def project do
[ [
app: :vultr, app: :vultr,
version: "0.2.0", version: "0.2.1",
elixir: "~> 1.3", elixir: "~> 1.3",
deps: deps(), deps: deps(),
description: @description, description: @description,

View File

@ -2,7 +2,6 @@ defmodule VultrTest do
use ExUnit.Case use ExUnit.Case
test "requests work" do test "requests work" do
response = Vultr.app_list() assert {:ok, _} = Vultr.app_list()
assert response.status === 200
end end
end end