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 double snapshot creation error #547

Merged
merged 1 commit into from May 2, 2015

Conversation

denisdefreyne
Copy link
Member

The following does not raise an error, but should:

snapshot(:foo, stuff: :giraffe)
snapshot(:foo, stuff: :donkey)

The following does raise an error, but should not:

snapshot(:foo)
snapshot(:bar)

The reason is that uniqueness is tested on the second argument (params), but should be on the first (name).

@gpakosz
Copy link
Member

gpakosz commented May 2, 2015

👍

denisdefreyne added a commit that referenced this pull request May 2, 2015
@denisdefreyne denisdefreyne merged commit f8a46ce into release-3.7.x May 2, 2015
@denisdefreyne denisdefreyne deleted the fix-double-snapshot-names branch May 2, 2015 12:18
denisdefreyne added a commit that referenced this pull request May 3, 2015
@denisdefreyne denisdefreyne modified the milestone: 3.7.6 May 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants