n_plus_one_control 0.1.1
RSpec and Minitest matchers to prevent N+1 queries problem. Evaluates code under consideration several times with different scale factors to make sure that the number of DB queries behaves as expected (i.e. O(1) instead of O(N)). Example: ```ruby context "N+1", :n_plus_one do populate { |n| create_list(:post, n) } specify do expect { get :index }.to perform_constant_number_of_queries end end ```
Gemfile:
=
install:
=
Development Dependencies (9):
activerecord
~> 5.1
bundler
~> 1.10
factory_girl
~> 4.8.0
minitest
~> 5.9
pry-byebug
>= 0
rake
~> 10.0
rspec
~> 3.5
rubocop
~> 0.49
sqlite3
>= 0