Sha256: dfa31a7a820960bd037c7bb4c45a0d50255bbbc235a3cf0d3e029bf3a723f51e

Contents?: true

Size: 382 Bytes

Versions: 8

Compression:

Stored size: 382 Bytes

Contents

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

class RupActsAsVoterTest < 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

8 entries across 8 versions & 1 rubygems

Version Path
redmineup-1.0.10 test/acts_as_votable/rup_acts_as_voter_test.rb
redmineup-1.0.9 test/acts_as_votable/rup_acts_as_voter_test.rb
redmineup-1.0.8 test/acts_as_votable/rup_acts_as_voter_test.rb
redmineup-1.0.7 test/acts_as_votable/rup_acts_as_voter_test.rb
redmineup-1.0.5 test/acts_as_votable/rup_acts_as_voter_test.rb
redmineup-1.0.4 test/acts_as_votable/rup_acts_as_voter_test.rb
redmineup-1.0.3 test/acts_as_votable/rup_acts_as_voter_test.rb
redmineup-1.0.2 test/acts_as_votable/rup_acts_as_voter_test.rb