Sha256: a69bf605397bc61faf761963dfcef219d30361d2f5a2d1576dc30e553f0f55ca

Contents?: true

Size: 704 Bytes

Versions: 51

Compression:

Stored size: 704 Bytes

Contents

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

class VoteHelperTest < ActiveSupport::TestCase
  def vote
    RedmineCrm::ActsAsVotable::Vote.new
  end

  def test_know_that_like_is_a_true_vote
    assert vote.votable_words.that_mean_true.include? "like"
  end

  def test_know_that_bad_is_a_false_vote
    assert vote.votable_words.that_mean_false.include? "bad"
  end

  def test_be_a_vote_for_true_when_word_is_good
    assert vote.votable_words.meaning_of('good')
  end

  def test_be_a_vote_for_false_when_word_is_down
    assert !vote.votable_words.meaning_of('down')
  end

  def test_be_a_vote_for_true_when_the_word_is_unknown
    assert vote.votable_words.meaning_of('lsdhklkadhfs')
  end

end

Version data entries

51 entries across 51 versions & 2 rubygems

Version Path
redmine_crm-0.0.43 test/vote_helper_test.rb
redmine_crm-0.0.42 test/vote_helper_test.rb
redmine_crm-0.0.41 test/vote_helper_test.rb
redmine_crm-0.0.40 test/vote_helper_test.rb
redmine_crm-0.0.38 test/vote_helper_test.rb
redmine_crm-0.0.37 test/vote_helper_test.rb
redmine_crm-0.0.36 test/vote_helper_test.rb
redmine_crm-0.0.35 test/vote_helper_test.rb
redmine_crm-0.0.34 test/vote_helper_test.rb
redmine_crm-0.0.33 test/vote_helper_test.rb
redmine_crm-0.0.32 test/vote_helper_test.rb
redmine_crm-0.0.31 test/vote_helper_test.rb
redmine_crm-0.0.30 test/vote_helper_test.rb
redmine_crm-0.0.28 test/vote_helper_test.rb
redmine_crm-0.0.27 test/vote_helper_test.rb
redmine_crm-0.0.26 test/vote_helper_test.rb
redmine_crm-0.0.25 test/vote_helper_test.rb
test_redmine_vz-0.0.24 test/vote_helper_test.rb
redmine_crm-0.0.23 test/vote_helper_test.rb
redmine_crm-0.0.22 test/vote_helper_test.rb