Sha256: d55dffa2dcadc6da86ebefb442fdf37214c8601e7dc27033d0b8ba8ac79ef7ec

Contents?: true

Size: 400 Bytes

Versions: 4

Compression:

Stored size: 400 Bytes

Contents

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

4 entries across 4 versions & 1 rubygems

Version Path
bullet-5.7.4 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-5.7.3 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-5.7.2 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-5.7.1 spec/bullet/notification/unused_eager_loading_spec.rb