Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85823704
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
3 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/mix.exs b/mix.exs
index e8f09fc..db9c5d4 100644
--- a/mix.exs
+++ b/mix.exs
@@ -1,69 +1,69 @@
defmodule Tesla.Mixfile do
use Mix.Project
def project do
[
app: :tesla,
version: "0.7.1",
description: description(),
package: package(),
source_url: "https://github.com/teamon/tesla",
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env),
deps: deps(),
test_coverage: [tool: ExCoveralls],
dialyzer: [
plt_add_apps: [:inets],
plt_add_deps: :project
],
docs: [extras: ["README.md"]]
]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[applications: applications(Mix.env)]
end
- def applications(:test), do: applications(:dev) ++ [:httparrot]
+ def applications(:test), do: applications(:dev) ++ [:httparrot, :hackney, :ibrowse]
def applications(_), do: [:logger, :ssl]
defp description do
"HTTP client library, with support for middleware and multiple adapters."
end
defp package do
[
maintainers: ["Tymon Tobolski"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/teamon/tesla"}
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
# http clients
{:ibrowse, "~> 4.2", optional: true},
{:hackney, "~> 1.6", optional: true},
# json parsers
{:exjsx, ">= 0.1.0", optional: true},
{:poison, ">= 1.0.0", optional: true},
{:fuse, "~> 2.4", optional: true},
# testing & docs
{:httparrot, "~> 1.0.1", only: :test},
{:excoveralls, "~> 0.7.2", only: :test},
{:ex_doc, "~> 0.16.1", only: :dev},
{:mix_test_watch, "~> 0.4.1", only: :dev},
{:dialyxir, "~> 0.5.1", only: :dev}
]
end
end
diff --git a/test/tesla/adapter/hackney_test.exs b/test/tesla/adapter/hackney_test.exs
index 8866897..4c81ab3 100644
--- a/test/tesla/adapter/hackney_test.exs
+++ b/test/tesla/adapter/hackney_test.exs
@@ -1,13 +1,6 @@
-defmodule HackneyTest do
+defmodule Tesla.Adapter.HackneyTest do
use ExUnit.Case
use Tesla.Adapter.TestCase.Basic, adapter: :hackney
use Tesla.Adapter.TestCase.StreamRequestBody, adapter: :hackney
use Tesla.Adapter.TestCase.SSL, adapter: :hackney
-
- setup do
- case Application.ensure_started(:hackney) do
- {:error, _} -> :hackney.start
- :ok -> :ok
- end
- end
end
diff --git a/test/tesla/adapter/httpc_test.exs b/test/tesla/adapter/httpc_test.exs
index 6f773ea..d05f6c0 100644
--- a/test/tesla/adapter/httpc_test.exs
+++ b/test/tesla/adapter/httpc_test.exs
@@ -1,6 +1,6 @@
-defmodule HttpcTest do
+defmodule Tesla.Adapter.HttpcTest do
use ExUnit.Case
use Tesla.Adapter.TestCase.Basic, adapter: :httpc
use Tesla.Adapter.TestCase.StreamRequestBody, adapter: :httpc
use Tesla.Adapter.TestCase.SSL, adapter: :httpc
end
diff --git a/test/tesla/adapter/ibrowse_test.exs b/test/tesla/adapter/ibrowse_test.exs
index 03e2457..63ae109 100644
--- a/test/tesla/adapter/ibrowse_test.exs
+++ b/test/tesla/adapter/ibrowse_test.exs
@@ -1,11 +1,6 @@
-defmodule IbrowseTest do
+defmodule Tesla.Adapter.IbrowseTest do
use ExUnit.Case
use Tesla.Adapter.TestCase.Basic, adapter: :ibrowse
use Tesla.Adapter.TestCase.StreamRequestBody, adapter: :ibrowse
use Tesla.Adapter.TestCase.SSL, adapter: :ibrowse
-
- setup do
- Application.ensure_started(:ibrowse)
- :ok
- end
end
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Oct 29, 8:26 AM (10 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1797787
Default Alt Text
(3 KB)
Attached To
Mode
R28 tesla
Attached
Detach File
Event Timeline