File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
samples/client/petstore/crystal Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -16,5 +16,8 @@ development_dependencies:
16
16
version : ~>1.5.0
17
17
ameba :
18
18
github : crystal-ameba/ameba
19
+ spectator :
20
+ gitlab : arctic-fox/spectator
21
+ version : ~> 0.12.0
19
22
20
23
license :
Original file line number Diff line number Diff line change 9
9
#
10
10
11
11
# load modules
12
- require " spec "
12
+ require " spectator "
13
13
require " json"
14
+ require " time"
14
15
require " ../src/petstore"
15
16
16
17
def assert_compilation_error (path : String , message : String ) : Nil
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ module Petstore
127
127
end
128
128
129
129
if @password .to_s.size < 10
130
- invalid_properties.push(" invalid value for \" password\" , the character length must be great than or equal to 10." )
130
+ invalid_properties.push(" invalid value for \" password\" , the character length must be greater than or equal to 10." )
131
131
end
132
132
133
133
pattern = Regexp .new(/^\d {10} $/ )
@@ -253,7 +253,7 @@ module Petstore
253
253
end
254
254
255
255
if password.to_s.size < 10
256
- raise ArgumentError .new(" invalid value for \" password\" , the character length must be great than or equal to 10." )
256
+ raise ArgumentError .new(" invalid value for \" password\" , the character length must be greater than or equal to 10." )
257
257
end
258
258
259
259
@password = password
You can’t perform that action at this time.
0 commit comments