From 39e34b3071dc41f874930b9532c09ac3d4621a5b Mon Sep 17 00:00:00 2001 From: Imran Ismail Date: Sun, 7 Oct 2018 23:45:06 +0800 Subject: [PATCH] Format docs --- .formatter.exs | 4 ++++ test/turbolinks_test.exs | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .formatter.exs 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, "/", "")