Skip to content

Conversation

@robin-phung
Copy link
Contributor

What problem does this solve?

When using goals the on_trial_complete does not have scope to the #ab_finished supplied goals.

How does this solve it?

Updates the Trial to initialize with goals so that they are accessible in the callback when passing the trial into the callback.

Notes: Fixed and cleaned up specs.

@robin-phung robin-phung force-pushed the trial-goal-callback branch from 632b19f to 00748fd Compare June 3, 2020 05:15
Copy link
Member

@andrehjr andrehjr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for cleaning up those specs!

I've found a small typo. If you can fix that I'll merge :)

@robin-phung
Copy link
Contributor Author

Oops! As suggested spec copy has been fixed!

@andrehjr andrehjr merged commit 9e45dd1 into splitrb:master Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants