Sha256: 7535f69b36a8853f2d2c4887bea6603374a0df1ad64344595530950ede18fbf3

Contents?: true

Size: 565 Bytes

Versions: 2

Compression:

Stored size: 565 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.ar_key) } }

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bullet-2.3.1 spec/bullet/registry/object_spec.rb
bullet-2.3.0 spec/bullet/registry/object_spec.rb