Guest User

Untitled

a guest
Feb 19th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. it "should have acts_as_list functionality" do
  2. @sec1 = sections(:teaching)
  3. @sec2 = sections(:scholarship)
  4. @sec1.should be_in_list
  5. @sec2.should be_in_list
  6. (@sec1.position < @sec2.position).should be_true
  7. @sec2.move_higher
  8. (@sec1.position > @sec2.position).should be_true
  9. end
  10.  
  11. # should have acts_as_list functionality
  12. # expected true, got false
  13. # ./spec/models/section_spec.rb:22
  14. # 20 (@sec1.position < @sec2.position).should be_true
  15. # 21 @sec2.move_higher
  16. # 22 (@sec1.position > @sec2.position).should be_true
  17. # 23 end
  18. # 24end
Add Comment
Please, Sign In to add comment