spec/ruby/bin/spec_helper.rb in jspec-3.1.1 vs spec/ruby/bin/spec_helper.rb in jspec-3.1.2

- old
+ new

@@ -1,25 +1,8 @@ require 'fileutils' load File.dirname(__FILE__) + '/../../../bin/jspec' -def jspec name, *args - capture do - command(name).run *args - end +def jspec *args + `#{JSPEC_ROOT}/bin/jspec #{args.join(' ')}` end - -def capture &block - IO.popen('-') do |io| - io ? io.read : yield - end -end - -def shell *args - IO.popen(JSPEC_ROOT + '/bin/jspec shell', 'r+') do |io| - args.each do |arg| - io.puts arg - end - io.read - end -end \ No newline at end of file