Skip to content

Commit cdca60b

Browse files
committed
fix(crystal): update samples
1 parent c9433f5 commit cdca60b

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

samples/client/petstore/crystal/shard.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@ development_dependencies:
1616
version: ~>1.5.0
1717
ameba:
1818
github: crystal-ameba/ameba
19+
spectator:
20+
gitlab: arctic-fox/spectator
21+
version: ~> 0.12.0
1922

2023
license:

samples/client/petstore/crystal/spec/spec_helper.cr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
#
1010

1111
# load modules
12-
require "spec"
12+
require "spectator"
1313
require "json"
14+
require "time"
1415
require "../src/petstore"
1516

1617
def assert_compilation_error(path : String, message : String) : Nil

samples/client/petstore/crystal/src/petstore/models/format_test.cr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ module Petstore
127127
end
128128

129129
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.")
131131
end
132132

133133
pattern = Regexp.new(/^\d{10}$/)
@@ -253,7 +253,7 @@ module Petstore
253253
end
254254

255255
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.")
257257
end
258258

259259
@password = password

0 commit comments

Comments
 (0)