Sha256: 4b892073cbc6a8145687149087366c70f4202ee7fa2e05acd716736150645069
Contents?: true
Size: 703 Bytes
Versions: 2
Compression:
Stored size: 703 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper' class VoteHelperTest < ActiveSupport::TestCase def vote YeshuaCrm::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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yeshua_crm-1.0.1 | test/vote_helper_test.rb |
yeshua_crm-1.0.0 | test/vote_helper_test.rb |