Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow using CRYSTAL env var to customize Crystal binary #424

Merged
merged 1 commit into from
Jun 16, 2024

Conversation

Blacksmoke16
Copy link
Member

@Blacksmoke16 Blacksmoke16 commented Jun 16, 2024

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 #252 to propagate that value down to athena-spec methods.

Changelog

  • Pass through CRYSTAL ENV var to ASPEC::Methods.assert_error and ASPEC::Methods.assert_success

@Blacksmoke16 Blacksmoke16 added component:spec kind:enhancement New functionality to an existing feature labels Jun 16, 2024
@Blacksmoke16 Blacksmoke16 merged commit 7404fb7 into master Jun 16, 2024
12 checks passed
@Blacksmoke16 Blacksmoke16 deleted the customize-crystal branch June 16, 2024 15:42
PallasAthenaie pushed a commit to athena-framework/spec that referenced this pull request Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:spec kind:enhancement New functionality to an existing feature
Development

Successfully merging this pull request may close these issues.

1 participant