1
0
Fork 0
mirror of https://github.com/edgurgel/httparrot synced 2025-04-05 08:12:31 -04:00

Update to Elixir 0.12.3

This commit is contained in:
Eduardo Gurgel 2014-02-08 12:37:07 -03:00
parent 7bb41514b9
commit 8cc78f1a4d
3 changed files with 3 additions and 3 deletions

View file

@ -10,6 +10,6 @@ script: mix test --no-start
install: mix deps.get
before_install:
- mkdir -p vendor/elixir
- wget -q https://github.com/elixir-lang/elixir/releases/download/v0.12.1/v0.12.1.zip && unzip -qq v0.12.1.zip -d vendor/elixir
- wget -q https://github.com/elixir-lang/elixir/releases/download/v0.12.3/v0.12.3.zip && unzip -qq v0.12.3.zip -d vendor/elixir
- export PATH="$PATH:$PWD/vendor/elixir/bin"
- export MIX_ENV=test

View file

@ -5,7 +5,7 @@ defmodule Httparrot.Mixfile do
[ app: :httparrot,
version: "0.0.2",
name: "HTTParrot",
elixir: "~> 0.11.2 or ~> 0.12.0",
elixir: "~> 0.12.3",
deps: deps(Mix.env) ]
end

View file

@ -55,7 +55,7 @@ defmodule HTTParrot.StreamHandlerTest do
assert {{:chunked, func}, :req2, nil} = get_json(:req1, 2)
assert is_function(func)
send_func = fn(body) -> self <- {:chunk, body} end
send_func = fn(body) -> send(self, {:chunk, body}) end
func.(send_func)
assert_receive {:chunk, :json1}