-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add Zone#states and Zone#countries associations #529
Conversation
👍 from me. I don't like zones or members or how we handle any of that, but I don't have a better plan than what we have now and am okay supporting those associations on Zones. |
Will do. |
Uh, wrong one. sorry. |
end | ||
|
||
it "can access associated countries" do | ||
expect(zone.countries).to include(country) |
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.
Could this be expect(zone.countries.to_a).to eq([country])
? Just to make the expectation a little stricter?
Nice update, thanks. 👍 regardless of my one question in the spec. |
As requested in #529 (comment)
The build failure is due to some CSS not being found. I'm reasonably sure it's nothing to do with stricter expecations on zone associations :) |
Add Zone#states and Zone#countries associations
This PR also adds a
:with_country
factory to ease writing tests for taxation.