Module: Spec::Performance::Example::PerformanceExampleGroupMethods

Included in:
PerformanceExampleGroup
Defined in:
lib/spec/performance/example/performance_example_group_methods.rb

Instance Method Summary collapse

Instance Method Details

#perform(description, options = {}, backtrace = nil, &implementation) ⇒ Object



8
9
10
11
12
13
# File 'lib/spec/performance/example/performance_example_group_methods.rb', line 8

def perform(description, options = {}, backtrace = nil, &implementation)
  options = Spec::Performance::Configuration.configured_options.merge(options)

  builder = PerformanceExecutionBuilder.new(options, &implementation)
  example(description, options, backtrace, &builder.performance_proc)
end