Guest User

Untitled

a guest
Feb 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. require File.dirname(__FILE__) + '/../spec_helper'
  2.  
  3. context "A comment waiting for approval" do
  4.  
  5. setup do
  6. @comment = DjComment.new
  7. @comment.approved = false
  8. @comment.published = false
  9. end
  10.  
  11. specify "should know its display classes" do
  12. @comment.body_class.should_equal 'pendingCommentBody'
  13. @comment.who_class.should_equal 'pendingCommentWho'
  14. end
  15.  
  16. specify "should know its status" do
  17. @comment.should_not_be_approved
  18. @comment.should_not_be_published
  19. end
  20.  
  21. end
Add Comment
Please, Sign In to add comment