Sha256: c41b28df4b58d76d92a31d9314229ceab1aa7c8966affb32c79a1d0ca8f8aa6f

Contents?: true

Size: 359 Bytes

Versions: 1

Compression:

Stored size: 359 Bytes

Contents

require 'rubygems'
require 'active_record'
require File.join(File.dirname(__FILE__), "../lib/easy_prof")

def mock_profile_start(name, options = {})
  config = EasyProfiler.configuration.merge(options)
  profiler = mock 'MockProfiler', :name => name, :config => config
  EasyProfiler::Profile.send(:class_variable_get, :@@profile_results)[name] = profiler
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
easy-prof-1.0.0 spec/spec_helper.rb