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 Cucumber not loading lib/features correctly #35

Merged
merged 1 commit into from
Oct 5, 2016

Conversation

Cruikshanks
Copy link
Member

Because Cucumber is called in the context of the executing script (project) and not the gem, when it is telling Cucumber to reference lib/features Cucumber cannot see it. This means env.rb never gets loaded and therefore everything blows up.

This change corrects how we specify our default arguments, ensuring we correctly determine what the full path to the gems lib/features folder is, and passing that to Cucumber.

@Cruikshanks Cruikshanks added the bug Something isn't working label Oct 5, 2016
@Cruikshanks Cruikshanks self-assigned this Oct 5, 2016
Because Cucumber is called in the context of the executing script (project) and not the gem, when it is telling Cucumber to reference `lib/features` Cucumber cannot see it. This means `env.rb` never gets loaded and therefore everything blows up.

This change corrects how we specify our default arguments, ensuring we correctly determine what the full path to the gems `lib/features` folder is, and passing that to Cucumber.
@Cruikshanks Cruikshanks force-pushed the fix/not-finding-lib-features-folder branch from d5c9f18 to 544d546 Compare October 5, 2016 22:26
@Cruikshanks Cruikshanks merged commit b58c7e7 into master Oct 5, 2016
@Cruikshanks Cruikshanks deleted the fix/not-finding-lib-features-folder branch October 5, 2016 22:31
Cruikshanks added a commit that referenced this pull request Oct 5, 2016
Similar to 544d54 (PR #35) Quke was not loading the .config.yml file as set by the user, again because it was thinking in terms of its location and not the calling projects. This change corrects that when calling `Quke::Configuration.file_location`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant