test/test_helper.rb in stomp-1.3.5 vs test/test_helper.rb in stomp-1.4.0

- old
+ new

@@ -11,12 +11,12 @@ require 'stomp' require 'tlogger' end begin - dummy = RUBY_ENGINE -rescue NameError => ne + _ = RUBY_ENGINE +rescue NameError RUBY_ENGINE = "unknown" end =begin @@ -167,10 +167,11 @@ # Get a dynamic destination name. def make_destination name = caller_method_name unless name qname = ENV['STOMP_DOTQUEUE'] ? "/queue/test.ruby.stomp." + name : "/queue/test/ruby/stomp/" + name + return qname end # def checkEmsg(cc) m = cc.poll @@ -180,9 +181,10 @@ end # Check for JRuby before a connection exists def jruby?() jr = defined?(RUBY_ENGINE) && RUBY_ENGINE =~ /jruby/ ? true : false + return jr end # OK Data For Default Tests def dflt_data_ok() [