test/test_helper.rb in newrelic_rpm-3.4.2.1 vs test/test_helper.rb in newrelic_rpm-3.5.0
- old
+ new
@@ -127,10 +127,11 @@
NewRelic::Agent.config.remove_config(config)
end
end
module TransactionSampleTestHelper
+ module_function
def make_sql_transaction(*sql)
sampler = NewRelic::Agent::TransactionSampler.new
sampler.notice_first_scope_push Time.now.to_f
sampler.notice_transaction '/path', nil, :jim => "cool"
sampler.notice_push_scope "a"
@@ -161,7 +162,6 @@
sampler.notice_pop_scope "lew"
sampler.notice_pop_scope "Controller/sandwiches/index"
sampler.notice_scope_empty
sampler.samples[0]
end
- module_function :run_sample_trace_on
end