athena-framework / athena

An ecosystem of reusable, independent components
https://athenaframework.org
MIT License
211 stars 17 forks source link

Allow using `CRYSTAL` env var to customize Crystal binary #424

Closed Blacksmoke16 closed 3 months ago

Blacksmoke16 commented 3 months ago

Context

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.

This is a follow up to https://github.com/athena-framework/athena/pull/252 to propagate that value down to athena-spec methods.

Changelog