File tree 5 files changed +7
-7
lines changed 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ defmodule Test.Acceptance.BelongsToRequiredTest do
86
86
allow_nil?: true ,
87
87
public?: true ,
88
88
constraints: [
89
- match: fn -> ~r / [A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\. [A-Za-z]{2,}/ end
89
+ match: " [A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\. [A-Za-z]{2,}"
90
90
]
91
91
)
92
92
end
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ defmodule Test.Acceptance.JsonSchemaTest do
87
87
public?: true ,
88
88
allow_nil?: true ,
89
89
constraints: [
90
- match: fn -> ~r / [A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\. [A-Za-z]{2,}/ end
90
+ match: " [A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\. [A-Za-z]{2,}"
91
91
]
92
92
)
93
93
end
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ defmodule Test.Acceptance.OpenApiTest do
211
211
allow_nil?: true ,
212
212
public?: true ,
213
213
constraints: [
214
- match: fn -> ~r / [A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\. [A-Za-z]{2,}/ end
214
+ match: " [A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\. [A-Za-z]{2,}"
215
215
]
216
216
)
217
217
end
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ defmodule Test.Acceptance.PatchTest do
250
250
public?: true ,
251
251
allow_nil?: true ,
252
252
constraints: [
253
- match: fn -> ~r / [A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\. [A-Za-z]{2,}/ end
253
+ match: " [A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\. [A-Za-z]{2,}"
254
254
]
255
255
)
256
256
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ defmodule Test.Acceptance.PostTest do
212
212
public?: true ,
213
213
allow_nil?: true ,
214
214
constraints: [
215
- match: fn -> ~r / [A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\. [A-Za-z]{2,}/ end
215
+ match: " [A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\. [A-Za-z]{2,}"
216
216
]
217
217
)
218
218
@@ -271,7 +271,7 @@ defmodule Test.Acceptance.PostTest do
271
271
end
272
272
273
273
validations do
274
- validate ( match ( :pin , fn -> ~r / ^[0-9]{4}$/ end ) )
274
+ validate ( match ( :pin , " ^[0-9]{4}$" ) )
275
275
validate ( string_length ( :pin , exact: 4 ) )
276
276
end
277
277
end
@@ -562,7 +562,7 @@ defmodule Test.Acceptance.PostTest do
562
562
assert % { "errors" => [ error_regex , error_length ] } = response . resp_body
563
563
564
564
assert error_regex [ "code" ] == "invalid_attribute"
565
- assert error_regex [ "detail" ] == "must match ~r/ ^[0-9]{4}$/ "
565
+ assert error_regex [ "detail" ] == "must match \" ^[0-9]{4}$\" "
566
566
assert error_regex [ "meta" ] == % { "match" => "^[0-9]{4}$" }
567
567
assert error_regex [ "source" ] == % { "pointer" => "/data/attributes/pin" }
568
568
You can’t perform that action at this time.
0 commit comments