Sha256: 0b893a7afe6075866c118fe454b5e141ff80a8d0b8e4e7ffc5f8f0bcc2da999d
Contents?: true
Size: 799 Bytes
Versions: 2
Compression:
Stored size: 799 Bytes
Contents
require 'acts_as_votable' require 'spec_helper' describe VotableVoter do it_behaves_like "a votable_model" do # TODO Replace with factories let (:voter) { VotableVoter.create(:name => 'i can vote!') } let (:voter2) { VotableVoter.create(:name => 'a new person') } let (:votable) { VotableVoter.create(:name => 'a voting model') } let (:votable_cache) { VotableCache.create(:name => 'voting model with cache') } end it_behaves_like "a voter_model" do # TODO Replace with factories let (:voter) { VotableVoter.create(:name => 'i can vote!') } let (:voter2) { VotableVoter.create(:name => 'a new person') } let (:votable) { VotableVoter.create(:name => 'a voting model') } let (:votable2) { VotableVoter.create(:name => 'a 2nd voting model') } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acts_as_votable-0.10.0 | spec/votable_voter_spec.rb |
acts_as_votable-0.9.0 | spec/votable_voter_spec.rb |