Skip to content

Fix example group issue with turnip#47

Merged
ArturT merged 1 commit intoKnapsackPro:masterfrom
tevio:master
Oct 7, 2016
Merged

Fix example group issue with turnip#47
ArturT merged 1 commit intoKnapsackPro:masterfrom
tevio:master

Conversation

@tevio
Copy link
Copy Markdown

@tevio tevio commented Oct 1, 2016

end

def self.test_path(example_group)
unless example_group[:turnip]
Copy link
Copy Markdown
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.

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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