Sha256: a75d80a9478f16389eddc766dea9c68b941c66e0172281fde062435131e8141a

Contents?: true

Size: 641 Bytes

Versions: 8

Compression:

Stored size: 641 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

describe ActsAsVotable::Votable do
  it "should not be votable" do
    expect(NotVotable).not_to be_votable
  end

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

  it_behaves_like "a votable_model" do
    let (:voter)         { create(:voter, name: "i can vote!") }
    let (:voter2)        { create(:voter, name: "a new person") }
    let (:voter3)        { create(:voter, name: "another person") }
    let (:votable)       { create(:votable, name: "a voting model") }
    let (:votable_cache) { create(:votable_cache, name: "voting model with cache") }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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