Skip to content

Commit

Permalink
~R deprecated in Elixir 1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
balexand committed Feb 5, 2024
1 parent 0d0b391 commit a5052b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/sanity_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ defmodule SanityTest do
Sanity.request(query, dataset: "production", project_id: 1)
end

assert_raise ValidationError, ~R{required :dataset option not found}, fn ->
assert_raise ValidationError, ~r{required :dataset option not found}, fn ->
Sanity.request(query, Keyword.delete(@request_config, :dataset))
end
end
Expand Down Expand Up @@ -223,7 +223,7 @@ defmodule SanityTest do
end)

exception =
assert_raise Sanity.Error, ~R'%Finch.Response{', fn ->
assert_raise Sanity.Error, ~r'%Finch.Response{', fn ->
Sanity.query("*") |> Sanity.request(@request_config)
end

Expand Down Expand Up @@ -367,7 +367,7 @@ defmodule SanityTest do
end

assert_raise NimbleOptions.ValidationError,
~R{invalid map in :variables option: expected map key to match at least one given type},
~r{invalid map in :variables option: expected map key to match at least one given type},
fn ->
Sanity.stream(request_opts: @request_config, variables: %{1 => ""})
end
Expand Down

0 comments on commit a5052b0

Please sign in to comment.