Sha256: e09a202fdaefd76f255f6e7523459ade5c696b1ede08d860d81dec25a695e2c0

Contents?: true

Size: 431 Bytes

Versions: 8

Compression:

Stored size: 431 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 { expect(subject.body).to eq("  Post => [:comments, :votes]\n  Remove from your finder: :includes => [:comments, :votes]") }
      it { expect(subject.title).to eq('AVOID eager loading in path') }
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bullet-6.0.2 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-6.0.1 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-6.0.0 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-5.9.0 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-5.8.1 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-5.8.0 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-5.7.6 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-5.7.5 spec/bullet/notification/unused_eager_loading_spec.rb