Syntax error in ./libs/webmock/webmock/stub.cr:12: can't use named tuple syntax for Hash-like literal, use '=>'
Closed this issue · 4 comments
icyleaf commented
$ crystal spec
Error in line 1: while requiring "./spec/gitlab/client_spec.cr"
in ./spec/gitlab/client_spec.cr:1: while requiring "../spec_helper"
require "../spec_helper"
^
in ./spec/spec_helper.cr:2: while requiring "webmock"
require "webmock"
^
in ./libs/webmock/webmock.cr:1: while requiring "./**"
require "./**"
^
Syntax error in ./libs/webmock/webmock/stub.cr:12: can't use named tuple syntax for Hash-like literal, use '=>'
@headers = HTTP::Headers{"Content-length": "0"}
crystal version: 0.18.2
asterite commented
Fixed! I don't know what happened, I thought I pushed these changes some days ago. I even use this in other projects...
icyleaf commented
Since crystal was released 0.17.4, it always throws this exception. i changed everything to Hash
.