Skip to content

Instantly share code, notes, and snippets.

@swanandp
Created June 10, 2011 12:11
Show Gist options
  • Save swanandp/1018717 to your computer and use it in GitHub Desktop.
Save swanandp/1018717 to your computer and use it in GitHub Desktop.
One issue on acts_as_list said that first.first? and first.last? both returned true
7.times do
ListMixin.create!
end
assert ListMixin.first.first?
assert ListMixin.last.last?
assert !ListMixin.last.first?
assert !ListMixin.first.last?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment