Skip to content

Instantly share code, notes, and snippets.

@pol
Created July 23, 2008 16:41
Show Gist options
  • Save pol/1809 to your computer and use it in GitHub Desktop.
Save pol/1809 to your computer and use it in GitHub Desktop.
it "should have acts_as_list functionality" do
@sec1 = sections(:teaching)
@sec2 = sections(:scholarship)
@sec1.should be_in_list
@sec2.should be_in_list
(@sec1.position < @sec2.position).should be_true
@sec2.move_higher
(@sec1.position > @sec2.position).should be_true
end
# should have acts_as_list functionality
# expected true, got false
# ./spec/models/section_spec.rb:22
# 20 (@sec1.position < @sec2.position).should be_true
# 21 @sec2.move_higher
# 22 (@sec1.position > @sec2.position).should be_true
# 23 end
# 24end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment