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 example group issue with turnip #47

Merged
merged 1 commit into from
Oct 7, 2016
Merged

Conversation

tevio
Copy link

@tevio tevio commented Oct 1, 2016

@@ -48,10 +48,8 @@ def bind_time_offset_warning
end

def self.test_path(example_group)
unless example_group[:turnip]
Copy link
Member

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",
Copy link
Member

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

@tevio
Copy link
Author

tevio commented Oct 3, 2016

@ArturT I've added the extra case for Turnip <= 2, let me know if there is anything else needs doing on this PR :)

@ArturT
Copy link
Member

ArturT commented Oct 4, 2016

@tevio PR looks good. Thank you! I'm going to merge it and release a new gem version by the end of this week.

@ArturT ArturT merged commit bf6b6ca into KnapsackPro:master Oct 7, 2016
@ArturT
Copy link
Member

ArturT commented Oct 7, 2016

@tevio I've released version 1.12.2. Thanks for PR. :)

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