diff --git a/.formatter.exs b/.formatter.exs new file mode 100644 index 0000000..acb6848 --- /dev/null +++ b/.formatter.exs @@ -0,0 +1,4 @@ +[ + inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"], + import_deps: [:plug] +] diff --git a/test/turbolinks_test.exs b/test/turbolinks_test.exs index ddb5c1a..607c263 100644 --- a/test/turbolinks_test.exs +++ b/test/turbolinks_test.exs @@ -2,6 +2,7 @@ defmodule TurbolinksTest do use ExUnit.Case use Plug.Test use Turbolinks + doctest Turbolinks describe "redirect/2" do @@ -41,7 +42,7 @@ defmodule TurbolinksTest do assert Enum.member?(conn.resp_headers, {"location", "/url"}) assert conn.status == 302 end - + test "returns the conn with status 308 if :xhr_status is 308" do conn = conn(:post, "/", "")