Sha256: 9c312671d1c42b0b0794d95c34a942fefc867b8f06d218034af6132a1f6fe6ea

Contents?: true

Size: 794 Bytes

Versions: 34

Compression:

Stored size: 794 Bytes

Contents

require 'spec_helper'

module Bullet
  module Detector
    describe Association do
      before :all do
        @post1 = Post.first
        @post2 = Post.last
      end

      context ".add_object_association" do
        it "should add object, associations pair" do
          Association.add_object_associations(@post1, :associations)
          expect(Association.send(:object_associations)).to be_include(@post1.bullet_key, :associations)
        end
      end

      context ".add_call_object_associations" do
        it "should add call object, associations pair" do
          Association.add_call_object_associations(@post1, :associations)
          expect(Association.send(:call_object_associations)).to be_include(@post1.bullet_key, :associations)
        end
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 2 rubygems

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