Sha256: 4a7ced72c19b868bc8be26b32e171f3d402ab6148b7f7f6de58292ade93d76b1

Contents?: true

Size: 556 Bytes

Versions: 18

Compression:

Stored size: 556 Bytes

Contents

require 'spec_helper'

module Bullet
  module Notification
    describe NPlusOneQuery do
      subject { NPlusOneQuery.new([["caller1", "caller2"]], Post, [:comments, :votes], "path") }

      its(:body_with_caller) { should == "  Post => [:comments, :votes]\n  Add to your finder: :include => [:comments, :votes]\nN+1 Query method call stack\n  caller1\n  caller2" }
      its(:body) { should == "  Post => [:comments, :votes]\n  Add to your finder: :include => [:comments, :votes]" }
      its(:title) { should == "N+1 Query in path" }
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
bullet-4.7.1 spec/bullet/notification/n_plus_one_query_spec.rb
bullet-4.7.0 spec/bullet/notification/n_plus_one_query_spec.rb
bullet-4.6.0 spec/bullet/notification/n_plus_one_query_spec.rb
bullet-4.5.0 spec/bullet/notification/n_plus_one_query_spec.rb
bullet-4.4.0 spec/bullet/notification/n_plus_one_query_spec.rb
bullet-4.3.1 spec/bullet/notification/n_plus_one_query_spec.rb
bullet-4.3.0 spec/bullet/notification/n_plus_one_query_spec.rb
bullet-4.2.0 spec/bullet/notification/n_plus_one_query_spec.rb
bullet-4.1.6 spec/bullet/notification/n_plus_one_query_spec.rb
bullet-4.1.5 spec/bullet/notification/n_plus_one_query_spec.rb
bullet-4.1.4 spec/bullet/notification/n_plus_one_query_spec.rb
bullet-4.1.3 spec/bullet/notification/n_plus_one_query_spec.rb
bullet-4.1.2 spec/bullet/notification/n_plus_one_query_spec.rb
bullet-4.1.1 spec/bullet/notification/n_plus_one_query_spec.rb
bullet-4.1.0 spec/bullet/notification/n_plus_one_query_spec.rb
bullet-4.0.0 spec/bullet/notification/n_plus_one_query_spec.rb
bullet-2.3.1 spec/bullet/notification/n_plus_one_query_spec.rb
bullet-2.3.0 spec/bullet/notification/n_plus_one_query_spec.rb