Sha256: 0d341e549d2e30e81b37e74798822c07a3f8deed995f7c93b01d9f2c950be620
Contents?: true
Size: 574 Bytes
Versions: 2
Compression:
Stored size: 574 Bytes
Contents
require 'acts_as_votable' require 'spec_helper' describe ActsAsVotable::Votable do it "should not be votable" do NotVotable.should_not be_votable end it "should be votable" do Votable.should be_votable end it_behaves_like "a votable_model" do # TODO Replace with factories let (:voter) { Voter.create(:name =>'i can vote!') } let (:voter2) { Voter.create(:name => 'a new person') } let (:votable) { Votable.create(:name =>'a voting model') } let (:votable_cache) { VotableCache.create(:name => 'voting model with cache') } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acts_as_votable-0.10.0 | spec/votable_spec.rb |
acts_as_votable-0.9.0 | spec/votable_spec.rb |