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