Sha256: 66ea6c0c41576456dfb6022a0f705677a9c327eb1ece87cd29ae5e9e3b1e1719

Contents?: true

Size: 395 Bytes

Versions: 15

Compression:

Stored size: 395 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: :include => [:comments, :votes]") }
      it { expect(subject.title).to eq("Unused Eager Loading in path") }
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
bullet_instructure-4.0.5 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-4.14.0 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-4.13.2 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-4.13.1 spec/bullet/notification/unused_eager_loading_spec.rb
bullet_instructure-4.0.3 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-4.13.0 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-4.12.0 spec/bullet/notification/unused_eager_loading_spec.rb
bullet_instructure-4.0.2 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-4.11.3 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-4.11.2 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-4.11.1 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-4.11.0 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-4.10.0 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-4.9.0 spec/bullet/notification/unused_eager_loading_spec.rb
bullet-4.8.0 spec/bullet/notification/unused_eager_loading_spec.rb