Sha256: e0a718bbc460266da0349c681e35b28ac5df86ba9ebbc583770569b321f3f862

Contents?: true

Size: 558 Bytes

Versions: 2

Compression:

Stored size: 558 Bytes

Contents

require 'acts_as_votable'
require 'spec_helper'

describe ActsAsVotable::Voter do

  it "should not be a voter" do
    NotVotable.should_not be_votable
  end

  it "should be a voter" do
    Votable.should be_votable
  end

  it_behaves_like "a voter_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 (:votable2) { Votable.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/voter_spec.rb
acts_as_votable-0.9.0 spec/voter_spec.rb