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.63 test/vote_helper_test.rb
redmine_crm-0.0.62 test/vote_helper_test.rb
redmine_crm-0.0.61 test/vote_helper_test.rb
redmine_crm-0.0.60 test/vote_helper_test.rb
redmine_crm-0.0.59 test/vote_helper_test.rb
redmine_crm-0.0.58 test/vote_helper_test.rb
redmine_crm-0.0.57 test/vote_helper_test.rb
redmine_crm-0.0.56 test/vote_helper_test.rb
redmine_crm-0.0.55 test/vote_helper_test.rb
redmine_crm-0.0.54 test/vote_helper_test.rb
redmine_crm-0.0.53 test/vote_helper_test.rb
redmine_crm-0.0.52 test/vote_helper_test.rb
redmine_crm-0.0.51 test/vote_helper_test.rb
redmine_crm-0.0.50 test/vote_helper_test.rb
redmine_crm-0.0.49 test/vote_helper_test.rb
redmine_crm-0.0.48 test/vote_helper_test.rb
redmine_crm-0.0.47 test/vote_helper_test.rb
redmine_crm-0.0.46 test/vote_helper_test.rb
redmine_crm-0.0.45 test/vote_helper_test.rb
redmine_crm-0.0.44 test/vote_helper_test.rb