Skip to content

Commit

Permalink
chore: char list linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jackrosa183 authored and avogel3 committed Sep 20, 2024
1 parent dc2ae76 commit 55eff35
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/tilex/notifications/notifiers/slack.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ defmodule Tilex.Notifications.Notifiers.Slack do
defp send_slack_message(message, http) do
message = String.replace(message, "\"", "'")
endpoint = slack_endpoint() |> String.to_charlist()
request = {endpoint, [], 'application/json', "{\"text\": \"#{message}\"}"}
request = {endpoint, [], ~c"application/json", "{\"text\": \"#{message}\"}"}
http.request(:post, request, [], [])
end

Expand Down
2 changes: 1 addition & 1 deletion test/controllers/stats_controller_test.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Tilex.StatsControllerTest do
use TilexWeb.ConnCase, async: true

test 'developer/2 redirects to stats index when unauthenticated', %{conn: conn} do
test ~c"developer/2 redirects to stats index when unauthenticated", %{conn: conn} do
response = get(conn, Routes.stats_path(conn, :developer))
assert html_response(response, 302)
end
Expand Down
2 changes: 1 addition & 1 deletion test/features/developer_signs_out_test.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Features.DeveloperSignsOutTest do
use Tilex.IntegrationCase, async: true

test 'signs out and sees a flash message', %{:session => session} do
test ~c"signs out and sees a flash message", %{:session => session} do
developer = Factory.insert!(:developer)

session
Expand Down
2 changes: 1 addition & 1 deletion test/support/pages/create_post_page.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ defmodule Tilex.Integration.Pages.CreatePostPage do

def click_cancel(session) do
session
|> click(Query.link('cancel'))
|> click(Query.link(~c"cancel"))
end

def expect_form_has_error(session, error_text) do
Expand Down
2 changes: 1 addition & 1 deletion test/tilex/notifications/notifiers/slack_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defmodule Tilex.Notifications.Notifiers.SlackTest do
defmodule HTTPMock do
def request(
:post,
{'https://slack.test.com/abc/123', [], 'application/json', payload},
{~c"https://slack.test.com/abc/123", [], ~c"application/json", payload},
[],
[]
) do
Expand Down

0 comments on commit 55eff35

Please sign in to comment.