Sha256: 9ca2a0a0a5c93a14d53ee33f26a8701cb333997a7ba4f3e550f3c6ea8d91729c
Contents?: true
Size: 586 Bytes
Versions: 1
Compression:
Stored size: 586 Bytes
Contents
require 'spec_helper' module Bullet module Notification describe NPlusOneQuery do subject { NPlusOneQuery.new([["caller1", "caller2"]], Post, [:comments, :votes], "path") } it { expect(subject.body_with_caller).to eq(" Post => [:comments, :votes]\n Add to your finder: :include => [:comments, :votes]\nN+1 Query method call stack\n caller1\n caller2") } it { expect(subject.body).to eq(" Post => [:comments, :votes]\n Add to your finder: :include => [:comments, :votes]") } it { expect(subject.title).to eq("N+1 Query in path") } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bullet-4.8.0 | spec/bullet/notification/n_plus_one_query_spec.rb |