Skip to content

Make #have_relationships accept symbols #15

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

Conversation

lancedikson
Copy link

@lancedikson lancedikson commented Feb 7, 2020

What is the current behavior?

I noticed that the have_relationships behavior mentioned in README.md doesn't work with a parsed JSON object if I pass symbols as described in the docs:
expect(document['data']).to have_relationships(:posts, :comments)

What is the new behavior?

Now, have_relationships works both with symbols and strings.

Checklist

Please make sure the following requirements are complete:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes /
    features)
  • All automated checks pass (CI/CD)

@lancedikson lancedikson force-pushed the fix/have_relationships_symbols branch from 16cbbf7 to c713856 Compare February 7, 2020 20:06
@lancedikson
Copy link
Author

For some reason, Github Actions weren't triggered, but the tests are passing on my laptop :) Would you mind running Actions manually?

@stas
Copy link
Collaborator

stas commented Feb 15, 2020

@lancedikson I'm reluctant to merging this. We should either update all the helpers to allow symbols or keep things the way these are now.

If you're willing to provide support for all the marchers, I'll be happy to merge it.
Thanks for the PR 🙇‍♂️

@stas
Copy link
Collaborator

stas commented Jun 29, 2020

Superseded by #18

@stas stas closed this Jun 29, 2020
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