-
Notifications
You must be signed in to change notification settings - Fork 95
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 example group issue with turnip #47
Conversation
tevio
commented
Oct 1, 2016
- the previous fix for this - Add support for Turnip features #19 - does not work with Rails 4.2.6, turnip 2.1.1, rspec 3.4.0 & knapsack latest, this fixes that fix
@@ -48,10 +48,8 @@ def bind_time_offset_warning | |||
end | |||
|
|||
def self.test_path(example_group) | |||
unless example_group[:turnip] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to still have backward compatibility with Turnip 1.x
You could check if Turnip exists and if the version is bellow 2.x then follow old approach.
if defined?(Turnip) && Turnip::VERSION.to_i < 2
and we need test for both cases.
@@ -100,10 +100,10 @@ | |||
context 'with turnip features' do | |||
let(:current_example_metadata) do | |||
{ | |||
file_path: "./spec/features/logging_in.feature", | |||
file_path: "gems/turnip-1.2.4/lib/turnip/rspec.rb", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here is example with hard coded turnip version 1.2.4
it could be x.x.x
@ArturT I've added the extra case for Turnip <= 2, let me know if there is anything else needs doing on this PR :) |
@tevio PR looks good. Thank you! I'm going to merge it and release a new gem version by the end of this week. |
@tevio I've released version 1.12.2. Thanks for PR. :) |