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

Diff tables with misplaced columns #212

Merged
merged 1 commit into from
Apr 21, 2012
Merged

Diff tables with misplaced columns #212

merged 1 commit into from
Apr 21, 2012

Conversation

laserlemon
Copy link
Contributor

With an optional :misplaced_col option to the Cucumber::Ast::Table#diff! method, one can ensure that column headings between the two tables are in the same order.

This is useful in a Cucumber step where you'd like to assert the exact contents of an HTML table, including structure. I ran into this in a JavaScript scenario where I test drag-and-drop column reordering.

The new option defaults to false so it should not break backwards compatibility.

@laserlemon
Copy link
Contributor Author

Any insight on this or how it could be improved? Thanks!

@laserlemon
Copy link
Contributor Author

Rebased against master.

@laserlemon
Copy link
Contributor Author

Rebased again and all is green. 💚

@mattwynne
Copy link
Member

Cool, thanks for contributing to Cucumber!

I was surprised the default behaviour was to let this happen, but it's a good idea to preserve backwards compatibility I think.

mattwynne added a commit that referenced this pull request Apr 21, 2012
Diff tables with misplaced columns
@mattwynne mattwynne merged commit 3390561 into cucumber:master Apr 21, 2012
@laserlemon
Copy link
Contributor Author

Hooray! Thank you. 👏

@mattwynne
Copy link
Member

Yeah, sorry it took so ridiculously long to merge in.

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants