Skip to content

Instantly share code, notes, and snippets.

@wanderingmatt
Created March 1, 2009 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wanderingmatt/72530 to your computer and use it in GitHub Desktop.
Save wanderingmatt/72530 to your computer and use it in GitHub Desktop.
test "sort should return the correct order" do
actual = Event.sort(1, 'groups.name')
# puts actual
expected = [
events(:three).id,
events(:two).id,
events(:four).id,
events(:five).id,
events(:one).id,
events(:one).id
]
assert expected, actual
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment