Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
simonprev committed Jul 22, 2019
1 parent 215f93d commit 39753e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions lib/web/controllers/webapp_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ defmodule Accent.WebAppController do
|> halt()

{:ok, content} ->
content = content
|> String.replace("__WEBAPP_AUTH_PROVIDERS__", "dummy")
|> String.replace("__API_HOST__", "http://localhost:4008")
|> String.replace("__API_WS_HOST__", "ws://localhost:4008")
content =
content
|> String.replace("__WEBAPP_AUTH_PROVIDERS__", "dummy")
|> String.replace("__API_HOST__", "http://localhost:4008")
|> String.replace("__API_WS_HOST__", "ws://localhost:4008")

assign(conn, :file, content)
end
Expand Down
4 changes: 2 additions & 2 deletions test/web/controllers/webapp_controller_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defmodule AccentTest.WebappController do
|> get(web_app_path(conn, []))

assert response.status == 200
assert response.state == :file
assert response.state == :sent
assert get_resp_header(response, "content-type") == ["text/html; charset=utf-8"]
end

Expand All @@ -17,7 +17,7 @@ defmodule AccentTest.WebappController do
|> get("/app/foo")

assert response.status == 200
assert response.state == :file
assert response.state == :sent
assert get_resp_header(response, "content-type") == ["text/html; charset=utf-8"]
end
end

0 comments on commit 39753e6

Please sign in to comment.