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

View File

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

View File

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