Module: NPlusOneControl::RSpec::DSL

Defined in:
lib/n_plus_one_control/rspec/dsl.rb

Overview

Extends RSpec ExampleGroup with populate method

Instance Method Summary collapse

Instance Method Details

#populateObject

Setup populate callback, which is used to prepare data for each run.



9
10
11
12
13
# File 'lib/n_plus_one_control/rspec/dsl.rb', line 9

def populate
  return @populate unless block_given?

  @populate = Proc.new
end