Sha256: ae49aa7bd15f636202165bd282dee75ac53d2c4bfd563ab19660cb1510bbc4f6
Contents?: true
Size: 749 Bytes
Versions: 8
Compression:
Stored size: 749 Bytes
Contents
# frozen_string_literal: true require "spec_helper" describe ActsAsVotable::Helpers::Words do let(:vote) { build(:vote) } it "should know that like is a true vote" do expect(vote.votable_words.that_mean_true).to include "like" end it "should know that bad is a false vote" do expect(vote.votable_words.that_mean_false).to include "bad" end it "should be a vote for true when word is good" do expect(vote.votable_words.meaning_of("good")).to be true end it "should be a vote for false when word is down" do expect(vote.votable_words.meaning_of("down")).to be false end it "should be a vote for true when the word is unknown" do expect(vote.votable_words.meaning_of("lsdhklkadhfs")).to be true end end
Version data entries
8 entries across 8 versions & 1 rubygems