Sha256: db78d496481b903decbf61904fc2f7d98171aa3f44c2496a3a6ee854c1aba7ac

Contents?: true

Size: 396 Bytes

Versions: 17

Compression:

Stored size: 396 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

17 entries across 17 versions & 2 rubygems

Version Path
bullet-5.3.0 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-5.2.1 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-5.2.0 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-5.1.1 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-5.1.0 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-5.0.0 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-4.14.10 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-4.14.9 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-4.14.8 spec/bullet/notification/unused_eager_loading_spec.rb
bullet_instructure-4.14.8 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-4.14.7 spec/bullet/notification/unused_eager_loading_spec.rb
bullet_instructure-4.14.7 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-4.14.6 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-4.14.5 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-4.14.4 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-4.14.3 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-4.14.2 spec/bullet/notification/unused_eager_loading_spec.rb