Sha256: bf2675bd69e542151e2e987a07fbaa48e2f30d29f69887839a5666d4e09fe937

Contents?: true

Size: 538 Bytes

Versions: 8

Compression:

Stored size: 538 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

describe ActsAsVotable::Voter do
  it "should not be a voter" do
    expect(NotVotable).not_to be_votable
  end

  it "should be a voter" do
    expect(Votable).to be_votable
  end

  it_behaves_like "a voter_model" do
    let (:voter)    { create(:voter, name: "i can vote!") }
    let (:voter2)   { create(:voter, name: "a new person") }
    let (:votable)  { create(:votable, name: "a voting model") }
    let (:votable2) { create(:votable, name: "a 2nd voting model") }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
acts_as_votable-0.14.0 spec/voter_spec.rb
acts_as_votable-0.13.2 spec/voter_spec.rb
acts_as_votable-0.13.1 spec/voter_spec.rb
acts_as_votable-0.13.0 spec/voter_spec.rb
acts_as_votable-0.12.1 spec/voter_spec.rb
acts_as_votable-0.12.0 spec/voter_spec.rb
acts_as_votable-0.11.1 spec/voter_spec.rb
acts_as_votable-0.11.0 spec/voter_spec.rb