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

Version Path
redmine_crm-0.0.36 test/acts_as_votable/rcrm_acts_as_votable_test.rb
redmine_crm-0.0.35 test/acts_as_votable/rcrm_acts_as_votable_test.rb
redmine_crm-0.0.34 test/acts_as_votable/rcrm_acts_as_votable_test.rb
redmine_crm-0.0.33 test/acts_as_votable/rcrm_acts_as_votable_test.rb
redmine_crm-0.0.32 test/acts_as_votable/rcrm_acts_as_votable_test.rb
redmine_crm-0.0.31 test/acts_as_votable/rcrm_acts_as_votable_test.rb
redmine_crm-0.0.30 test/acts_as_votable/rcrm_acts_as_votable_test.rb
redmine_crm-0.0.28 test/acts_as_votable/rcrm_acts_as_votable_test.rb
redmine_crm-0.0.27 test/acts_as_votable/rcrm_acts_as_votable_test.rb
redmine_crm-0.0.26 test/acts_as_votable/rcrm_acts_as_votable_test.rb
redmine_crm-0.0.25 test/acts_as_votable/rcrm_acts_as_votable_test.rb