require 'test/unit/assertions'

# The default template string contains what was sent and received. Strip 
# these out since we don't need them
unless RUBY_VERSION =~ /^1.9/
    module Test # :nodoc:
        module Unit # :nodoc:
            module Assertions # :nodoc:
                class AssertionMessage # :nodoc:
                    alias :old_template :template

                    def template
                        @template_string = ''
                        @parameters = []
                        old_template
                    end
                end
            end
        end
    end
else
    module ::Test::Unit # :nodoc:
        AssertionFailedError = MiniTest::Assertion
    end
end

class Blazemeter
module Utils
    include Test::Unit::Assertions
    def shift key, argv
        val = argv.shift
        assert_not_nil(val, "missing value for #{key}")
        assert_no_match(/^-.*$/, val, "missing value for #{key}")
        val
    end
	
	
end
end
require 'test/unit/assertions'

# The default template string contains what was sent and received. Strip 
# these out since we don't need them
unless RUBY_VERSION >= "1.9"
    module Test # :nodoc:
        module Unit # :nodoc:
            module Assertions # :nodoc:
                class AssertionMessage # :nodoc:
                    alias :old_template :template

                    def template
                        @template_string = ''
                        @parameters = []
                        old_template
                    end
                end
            end
        end
    end
else
    module ::Test::Unit # :nodoc:
        AssertionFailedError = MiniTest::Assertion
    end
end

class Blazemeter
module Utils
    include Test::Unit::Assertions
    def shift key, argv
        val = argv.shift
        assert_not_nil(val, "missing value for #{key}")
        assert_no_match(/^-.*$/, val, "missing value for #{key}")
        val
    end
	
	
end
end
Fix undefined method template for RUBY > 1.9
Fix undefined method template for RUBY > 1.9
