Sha256: c23ddda17c4bf078cde054562a70c4f087e7e7ca571883a57f6f00e540341fcc

Contents?: true

Size: 465 Bytes

Versions: 14

Compression:

Stored size: 465 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

module Bullet
  module Notification
    describe UnusedEagerLoading do
      subject { UnusedEagerLoading.new([''], Post, %i[comments votes], 'path') }

      it do
        expect(subject.body).to eq(
          "  Post => [:comments, :votes]\n  Remove from your query: .includes([:comments, :votes])"
        )
      end
      it { expect(subject.title).to eq('AVOID eager loading in path') }
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bullet-7.0.7 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-7.0.6 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-7.0.5 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-7.0.4 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-7.0.3 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-7.0.2 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-7.0.1 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-7.0.0 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-6.1.5 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-6.1.4 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-6.1.3 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-6.1.2 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-6.1.1 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-6.1.0 spec/bullet/notification/unused_eager_loading_spec.rb