Sha256: e212e593649d5c94b12d5e8c3221eb5024f496b7f814c6afa2cd004075bc000a

Contents?: true

Size: 593 Bytes

Versions: 16

Compression:

Stored size: 593 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
          subject.should be_include(post.bullet_ar_key)
        end
      end

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
bullet-4.7.1 spec/bullet/registry/object_spec.rb
bullet-4.7.0 spec/bullet/registry/object_spec.rb
bullet-4.6.0 spec/bullet/registry/object_spec.rb
bullet-4.5.0 spec/bullet/registry/object_spec.rb
bullet-4.4.0 spec/bullet/registry/object_spec.rb
bullet-4.3.1 spec/bullet/registry/object_spec.rb
bullet-4.3.0 spec/bullet/registry/object_spec.rb
bullet-4.2.0 spec/bullet/registry/object_spec.rb
bullet-4.1.6 spec/bullet/registry/object_spec.rb
bullet-4.1.5 spec/bullet/registry/object_spec.rb
bullet-4.1.4 spec/bullet/registry/object_spec.rb
bullet-4.1.3 spec/bullet/registry/object_spec.rb
bullet-4.1.2 spec/bullet/registry/object_spec.rb
bullet-4.1.1 spec/bullet/registry/object_spec.rb
bullet-4.1.0 spec/bullet/registry/object_spec.rb
bullet-4.0.0 spec/bullet/registry/object_spec.rb