mirror of
https://github.com/avitex/elixir-vultr
synced 2024-12-21 08:09:58 +00:00
Fix upcase error and test
This commit is contained in:
parent
8279a50c92
commit
e0160c5701
@ -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"
|
||||
|
2
mix.exs
2
mix.exs
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user