Sha256: 5a35e29a1e40f7c07295691ef3878515b911618ec0f8183c6e03ecf0ed9a50c6

Contents?: true

Size: 402 Bytes

Versions: 4

Compression:

Stored size: 402 Bytes

Contents

require 'spec_helper'

module Bullet
  module Notification
    describe UnusedEagerLoading do
      subject { UnusedEagerLoading.new([""], Post, [: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("Unused Eager Loading in path") }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bullet-5.4.3 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-5.4.2 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-5.4.1 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-5.4.0 spec/bullet/notification/unused_eager_loading_spec.rb