Sha256: 780ce4b539ab235a63fd2e6a3b78dbb8428e8a5f3362c5be1a334314cd8ebe84
Contents?: true
Size: 506 Bytes
Versions: 9
Compression:
Stored size: 506 Bytes
Contents
require 'rspec' require 'stringio' require "yajl" require_relative "gorgon_rspec_formatter" class RspecRunner class << self def run_file(filename) args = [ '-f', 'RSpec::Core::Formatters::GorgonRspecFormatter', filename ] err, out = StringIO.new, StringIO.new RSpec::Core::Runner.run(args, err, out) out.rewind Yajl::Parser.new(:symbolize_keys => true).parse(out.read) end def runner :rspec end end end
Version data entries
9 entries across 9 versions & 1 rubygems