Dataset specs rely on hash ordering #34

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

Projects

None yet

1 participant

@jeremyevans
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

@jeremyevans jeremyevans was assigned May 1, 2011
@jeremyevans jeremyevans closed this May 1, 2011
@jeremyevans
Owner

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