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

Update Trial so that goals are accessible in callback #625

Merged
merged 2 commits into from
Jun 4, 2020

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.

spec/trial_spec.rb Outdated Show resolved Hide resolved
spec/trial_spec.rb Outdated Show resolved Hide resolved
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