Closed Blacksmoke16 closed 3 months ago
In some cases you may want to run compiled tests using assert_error and assert_success using a different build of Crystal. Similar to how https://github.com/crystal-lang/crystal/blob/bcb5aeb5d2c432ccb1e5e2385189ed15599e8ba8/Makefile#L24 does it, this PR will use the value of CRYSTAL env var if present, otherwise fallback on crystal binary in PATH.
assert_error
assert_success
CRYSTAL
crystal
This is a follow up to https://github.com/athena-framework/athena/pull/252 to propagate that value down to athena-spec methods.
athena-spec
ASPEC::Methods.assert_error
ASPEC::Methods.assert_success
Context
In some cases you may want to run compiled tests using
assert_error
andassert_success
using a different build of Crystal. Similar to how https://github.com/crystal-lang/crystal/blob/bcb5aeb5d2c432ccb1e5e2385189ed15599e8ba8/Makefile#L24 does it, this PR will use the value ofCRYSTAL
env var if present, otherwise fallback oncrystal
binary in PATH.This is a follow up to https://github.com/athena-framework/athena/pull/252 to propagate that value down to
athena-spec
methods.Changelog
CRYSTAL
ENV var toASPEC::Methods.assert_error
andASPEC::Methods.assert_success