From e0bebb831d7b000db71c45539aabb66e6582a09c Mon Sep 17 00:00:00 2001 From: Ryan Fitzgerald Date: Sat, 8 Dec 2012 17:11:40 -0800 Subject: [PATCH] Move version output into private test helper --- lib/pry/test/helper.rb | 2 -- spec/helper.rb | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pry/test/helper.rb b/lib/pry/test/helper.rb index b99c22eb..0c66ee07 100644 --- a/lib/pry/test/helper.rb +++ b/lib/pry/test/helper.rb @@ -1,7 +1,5 @@ require 'pry' -puts "Ruby v#{RUBY_VERSION} (#{defined?(RUBY_ENGINE) ? RUBY_ENGINE : "ruby"}), Pry v#{Pry::VERSION}, method_source v#{MethodSource::VERSION}, CodeRay v#{CodeRay::VERSION}, Slop v#{Slop::VERSION}" - # in case the tests call reset_defaults, ensure we reset them to # amended (test friendly) values class << Pry diff --git a/spec/helper.rb b/spec/helper.rb index 2524d301..64ca8a92 100644 --- a/spec/helper.rb +++ b/spec/helper.rb @@ -31,3 +31,5 @@ if ENV["SET_TRACE_FUNC"] STDERR.printf "%8s %s:%-2d %10s %8s\n", event, file, line, id, classname } end + +puts "Ruby v#{RUBY_VERSION} (#{defined?(RUBY_ENGINE) ? RUBY_ENGINE : "ruby"}), Pry v#{Pry::VERSION}, method_source v#{MethodSource::VERSION}, CodeRay v#{CodeRay::VERSION}, Slop v#{Slop::VERSION}"