Created
July 23, 2008 16:41
-
-
Save pol/1809 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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