Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment