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

Version Path
acts_as_votable-0.10.0 spec/words_spec.rb
acts_as_votable-0.9.0 spec/words_spec.rb
acts_as_votable-0.8.0 spec/words_spec.rb
acts_as_votable-0.7.1 spec/words_spec.rb
acts_as_votable-0.7.0 spec/words_spec.rb
acts_as_votable-0.6.0 spec/words_spec.rb
acts_as_votable-0.5.0 spec/words_spec.rb
acts_as_votable-0.4.0 spec/words_spec.rb
jy-acts_as_votable-0.3.1 spec/words_spec.rb
acts_as_votable-0.3.1 spec/words_spec.rb
acts_as_votable-0.3.0 spec/words_spec.rb
acts_as_votable-0.2.0 spec/words_spec.rb
acts_as_votable-0.1.3 spec/words_spec.rb
acts_as_votable-0.1.2 spec/words_spec.rb
acts_as_votable-0.1.1 spec/words_spec.rb