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

Fix JRuby before :command helper hook #635

Merged
merged 1 commit into from
May 30, 2019
Merged

Fix JRuby before :command helper hook #635

merged 1 commit into from
May 30, 2019

Conversation

mvz
Copy link
Contributor

@mvz mvz commented May 30, 2019

Summary

Add full integration test for JRuby helper and make it work.

Details

The before :command hooks are run after the command's environment has already been set up, so instead of modifying Aruba's environment, or the actual environment, we need to modify the command's environment. This change adds a scenario for this feature, and updates the implementation to make it work.

We also no longer require the helper by default, so requiring by the user will have the desired effect.

Motivation and Context

This is a forward-port of #612.

How Has This Been Tested?

Cucumber scenario and RSpec specs were added.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I've added tests for my code
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

The before :command hooks are run after the command's environment has
already been set up, so instead of modifying Aruba's environment, or the
actual environment, we need to modify the command's environment. This
change adds a scenario for this feature, and updates the implementation
to make it work.

We also no longer require the helper by default, so requiring by the
user will have the desired effect.
@mvz mvz merged commit 7c1eab1 into master May 30, 2019
@mvz mvz deleted the fix-jruby-feature branch May 30, 2019 18:31
@mvz mvz mentioned this pull request May 31, 2019
12 tasks
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.

1 participant