Sha256: 452d18a2532a19014bb334e66b017f5d8a75528c541f5b6ecc283053f353734c

Contents?: true

Size: 600 Bytes

Versions: 3

Compression:

Stored size: 600 Bytes

Contents

require 'spec_helper'

module Bullet
  module Registry
    describe Object do
      let(:post) { Post.first }
      let(:another_post) { Post.last }
      subject { Object.new.tap { |object| object.add(post.bullet_ar_key) } }

      context "#include?" do
        it "should include the object" do
          expect(subject).to be_include(post.bullet_ar_key)
        end
      end

      context "#add" do
        it "should add an object" do
          subject.add(another_post.bullet_ar_key)
          expect(subject).to be_include(another_post.bullet_ar_key)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bullet-4.11.1 spec/bullet/registry/object_spec.rb
bullet-4.11.0 spec/bullet/registry/object_spec.rb
bullet-4.10.0 spec/bullet/registry/object_spec.rb