Module: NPlusOneControl::RSpec::DSL

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

Overview

Includes scale method into RSpec Example

Defined Under Namespace

Modules: ClassMethods

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#executorObject

Returns the value of attribute executor.



27
28
29
# File 'lib/n_plus_one_control/rspec/dsl.rb', line 27

def executor
  @executor
end

Instance Method Details

#current_scaleObject



29
30
31
# File 'lib/n_plus_one_control/rspec/dsl.rb', line 29

def current_scale
  executor&.current_scale
end