Sha256: 04b73a1cb139d212ecf84e21ab47040fed725ab626d4e6c38b5394f4beb5d098

Contents?: true

Size: 383 Bytes

Versions: 29

Compression:

Stored size: 383 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'

class RcrmActsAsVoterTest < ActiveSupport::TestCase

  class NotVoter < ActiveRecord::Base; end
  def test_that_voter_returns_false_unless_included
    assert_equal NotVoter.voter?, false
  end

  def test_that_voter_returns_true_if_included
    assert_equal Voter.voter?, true
    assert_equal VotableVoter.voter?, true
  end
end

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
redmine_crm-0.0.63 test/acts_as_votable/rcrm_acts_as_voter_test.rb
redmine_crm-0.0.62 test/acts_as_votable/rcrm_acts_as_voter_test.rb
redmine_crm-0.0.61 test/acts_as_votable/rcrm_acts_as_voter_test.rb
redmine_crm-0.0.60 test/acts_as_votable/rcrm_acts_as_voter_test.rb
redmine_crm-0.0.59 test/acts_as_votable/rcrm_acts_as_voter_test.rb
redmine_crm-0.0.58 test/acts_as_votable/rcrm_acts_as_voter_test.rb
redmine_crm-0.0.57 test/acts_as_votable/rcrm_acts_as_voter_test.rb
redmine_crm-0.0.56 test/acts_as_votable/rcrm_acts_as_voter_test.rb
redmine_crm-0.0.55 test/acts_as_votable/rcrm_acts_as_voter_test.rb
redmine_crm-0.0.54 test/acts_as_votable/rcrm_acts_as_voter_test.rb
redmine_crm-0.0.53 test/acts_as_votable/rcrm_acts_as_voter_test.rb
redmine_crm-0.0.52 test/acts_as_votable/rcrm_acts_as_voter_test.rb
redmine_crm-0.0.51 test/acts_as_votable/rcrm_acts_as_voter_test.rb
redmine_crm-0.0.50 test/acts_as_votable/rcrm_acts_as_voter_test.rb
redmine_crm-0.0.49 test/acts_as_votable/rcrm_acts_as_voter_test.rb
redmine_crm-0.0.48 test/acts_as_votable/rcrm_acts_as_voter_test.rb
redmine_crm-0.0.47 test/acts_as_votable/rcrm_acts_as_voter_test.rb
redmine_crm-0.0.46 test/acts_as_votable/rcrm_acts_as_voter_test.rb
redmine_crm-0.0.45 test/acts_as_votable/rcrm_acts_as_voter_test.rb
redmine_crm-0.0.44 test/acts_as_votable/rcrm_acts_as_voter_test.rb