Sha256: 397736f447521b0da2fcc1323b951e32e143bf6b74b35ca0b7a0ba0a75e4a18b
Contents?: true
Size: 534 Bytes
Versions: 15
Compression:
Stored size: 534 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' # Used to test muck_friend_user class UserTest < ActiveSupport::TestCase context "A class that is commentable" do setup do @user = Factory(:user) @comment = @user.comments.build(:body => 'a test comment') @comment.user = @user @comment.save! end should "have comments" do assert_equal 1, @user.comments.length end should "have comment cache" do @user.reload assert_equal 1, @user.comment_count end end end
Version data entries
15 entries across 15 versions & 1 rubygems