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

Dataset specs rely on hash ordering #34

Closed
jeremyevans opened this issue May 1, 2011 · 1 comment
Closed

Dataset specs rely on hash ordering #34

jeremyevans opened this issue May 1, 2011 · 1 comment
Assignees

Comments

@jeremyevans
Copy link
Owner

At least these cases are broken:
1)
'A simple dataset should format an insert statement' FAILED
expected "INSERT INTO test (name, price) VALUES ('wxyz', 342)", got "INSERT
INTO test (price, name) VALUES (342, 'wxyz')" (using ==)
./spec/dataset_spec.rb:75:

'Dataset filters should work with hashes' FAILED
expected "SELECT * FROM test WHERE (name = 'xyz') AND (price = 342)", got
"SELECT * FROM test WHERE (price = 342) AND (name = 'xyz')" (using ==)
./spec/dataset_spec.rb:96:

I'm not sure what the best way to fix this is without overcomplicating the
specs.

Google Code Info:
Issue #: 4
Author: asbradb...@gmail.com
Created On: 2007-04-09T14:52:40.000Z
Closed On: 2007-04-10T09:05:43.000Z

@ghost ghost assigned jeremyevans May 1, 2011
@jeremyevans
Copy link
Owner Author

Fixed using Regexps instead of Strings.

Google Code Info:
Author: cico...@gmail.com
Created On: 2007-04-10T09:05:43.000Z

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

No branches or pull requests

1 participant