Sha256: d76a665a2f20485712758ad70ba19b31325ff39ab3fe01f05392ab3a92ada709
Contents?: true
Size: 463 Bytes
Versions: 11
Compression:
Stored size: 463 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' class RcrmActsAsVotableTest < ActiveSupport::TestCase def test_not_be_votable assert !NotVotable.votable?, false end def test_be_votable assert Votable.votable?, true end def test_behaves_like_votable_model assert Voter.create(:name => 'i can vote!') assert VotableCache.create(:name => 'voting model with cache') assert VotableVoter.create(:name => 'i can vote too!') end end
Version data entries
11 entries across 11 versions & 1 rubygems