Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require File.dirname(__FILE__) + '/../spec_helper'
- context "A comment waiting for approval" do
- setup do
- @comment = DjComment.new
- @comment.approved = false
- @comment.published = false
- end
- specify "should know its display classes" do
- @comment.body_class.should_equal 'pendingCommentBody'
- @comment.who_class.should_equal 'pendingCommentWho'
- end
- specify "should know its status" do
- @comment.should_not_be_approved
- @comment.should_not_be_published
- end
- end
Add Comment
Please, Sign In to add comment