waterlink / spec2.cr

Enhanced `spec` testing library for [Crystal](http://crystal-lang.org/).
MIT License
103 stars 22 forks source link

Failing with crystal 0.20.5 #50

Closed imdrasil closed 7 years ago

imdrasil commented 7 years ago

I'm using latest version of Crystal 0.20.5 (for now). When you try to run even own tests you will get next error:

in src/matcher.cr:11: undefined macro method 'ArrayLiteral#argify'

      def {{name.id}}({{block.args.argify}})

The full stacktrace is:

Error in line 1: while requiring "./spec/matchers_spec.cr"

in spec/matchers_spec.cr:1: while requiring "./spec_helper"

require "./spec_helper"
^

in spec/spec_helper.cr:1: while requiring "../src/spec2"

require "../src/spec2"
^

in src/spec2.cr:6: while requiring "./matchers/*"

require "./matchers/*"
^

in src/matchers/be.cr:61: expanding macro

  register_matcher(be) do |expected|
  ^~~~~~~~~~~~~~~~

in src/matcher.cr:11: undefined macro method 'ArrayLiteral#argify'

      def {{name.id}}({{block.args.argify}})

So any type of it usage becomes impossible.

imdrasil commented 7 years ago

sorry - eccidently got older version