Sha256: 46ffbd50fabb23eb767890dc04172cb3611f9e975faba732f4c159c473d5a7f1

Contents?: true

Size: 619 Bytes

Versions: 22

Compression:

Stored size: 619 Bytes

Contents

# frozen_string_literal: true

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_key) } }

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

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
bullet-7.0.7 spec/bullet/registry/object_spec.rb
bullet-7.0.6 spec/bullet/registry/object_spec.rb
bullet-7.0.5 spec/bullet/registry/object_spec.rb
bullet-7.0.4 spec/bullet/registry/object_spec.rb
bullet-7.0.3 spec/bullet/registry/object_spec.rb
bullet-7.0.2 spec/bullet/registry/object_spec.rb
bullet-7.0.1 spec/bullet/registry/object_spec.rb
bullet-7.0.0 spec/bullet/registry/object_spec.rb
bullet-6.1.5 spec/bullet/registry/object_spec.rb
bullet-6.1.4 spec/bullet/registry/object_spec.rb
bullet-6.1.3 spec/bullet/registry/object_spec.rb
bullet-6.1.2 spec/bullet/registry/object_spec.rb
bullet-6.1.1 spec/bullet/registry/object_spec.rb
bullet-6.1.0 spec/bullet/registry/object_spec.rb
bullet-6.0.2 spec/bullet/registry/object_spec.rb
bullet-6.0.1 spec/bullet/registry/object_spec.rb
bullet-6.0.0 spec/bullet/registry/object_spec.rb
bullet-5.9.0 spec/bullet/registry/object_spec.rb
bullet-5.8.1 spec/bullet/registry/object_spec.rb
bullet-5.8.0 spec/bullet/registry/object_spec.rb