Skip to content

Add UUIDTools::UUID#next method to avoid a bug with shoulda-matchers #28

Merged
merged 1 commit into from Apr 25, 2013

2 participants

@thomasguillory

My RSpec suite randomly fail because of a bug between shoulda-matchers and activeuuid:

Indeed Shoulda relies on Type#next to randomly change an ID, but UUID#next was not implemented and returned UUID.to_s.next, which is or isn't an UUID !

I've patched UUID class to provide a random (but good) UUID on #next.

@pyromaniac pyromaniac merged commit cf95ff1 into jashmenn:master Apr 25, 2013

1 check passed

Details default The Travis build passed
@pyromaniac
Collaborator

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.