ruby-jmeter icon indicating copy to clipboard operation
ruby-jmeter copied to clipboard

`test` method is in global namespace by default

Open mfichman opened this issue 8 years ago • 0 comments

Hi! I noticed that if you include ruby-jmeter, the test method is inserted into the global namespace. This causes problems if test is already defined.

Is it possible to move test to a separate require, so that it's namespaced under JmeterRuby by default? For example:

require 'jmeter-ruby'

# Default
JmeterRuby.test do ... end
require 'jmeter-ruby/dsl'

# Un-namespaced version
test do ... end

mfichman avatar Jun 20 '17 16:06 mfichman