Sha256: 0f7713b173905573d0c69b2e971f57fcf327fb82e1939aa1076d0d006f1b7979

Contents?: true

Size: 588 Bytes

Versions: 34

Compression:

Stored size: 588 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_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

34 entries across 34 versions & 2 rubygems

Version Path
bullet-5.6.0 spec/bullet/registry/object_spec.rb
bullet-5.5.1 spec/bullet/registry/object_spec.rb
bullet-5.5.0 spec/bullet/registry/object_spec.rb
bullet-5.4.3 spec/bullet/registry/object_spec.rb
bullet-5.4.2 spec/bullet/registry/object_spec.rb
bullet-5.4.1 spec/bullet/registry/object_spec.rb
bullet-5.4.0 spec/bullet/registry/object_spec.rb
bullet-5.3.0 spec/bullet/registry/object_spec.rb
bullet-5.2.1 spec/bullet/registry/object_spec.rb
bullet-5.2.0 spec/bullet/registry/object_spec.rb
bullet-5.1.1 spec/bullet/registry/object_spec.rb
bullet-5.1.0 spec/bullet/registry/object_spec.rb
bullet-5.0.0 spec/bullet/registry/object_spec.rb
bullet-4.14.10 spec/bullet/registry/object_spec.rb
bullet-4.14.9 spec/bullet/registry/object_spec.rb
bullet-4.14.8 spec/bullet/registry/object_spec.rb
bullet_instructure-4.14.8 spec/bullet/registry/object_spec.rb
bullet-4.14.7 spec/bullet/registry/object_spec.rb
bullet_instructure-4.14.7 spec/bullet/registry/object_spec.rb
bullet-4.14.6 spec/bullet/registry/object_spec.rb