Sha256: 30b9b9055586a9b14a7be728031a113121d0ae5e5d535b394039aea8d2de43d7
Contents?: true
Size: 761 Bytes
Versions: 15
Compression:
Stored size: 761 Bytes
Contents
require 'acts_as_votable' require 'spec_helper' describe ActsAsVotable::Helpers::Words do before :each do @vote = ActsAsVotable::Vote.new end it "should know that like is a true vote" do @vote.votable_words.that_mean_true.should include "like" end it "should know that bad is a false vote" do @vote.votable_words.that_mean_false.should include "bad" end it "should be a vote for true when word is good" do @vote.votable_words.meaning_of('good').should be true end it "should be a vote for false when word is down" do @vote.votable_words.meaning_of('down').should be false end it "should be a vote for true when the word is unknown" do @vote.votable_words.meaning_of('lsdhklkadhfs').should be true end end
Version data entries
15 entries across 15 versions & 2 rubygems