Class: RspecRunner
- Inherits:
-
Object
- Object
- RspecRunner
- Defined in:
- lib/gorgon/rspec_runner.rb
Class Method Summary collapse
Class Method Details
.run_file(filename) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/gorgon/rspec_runner.rb', line 9 def run_file(filename) args = [ '-f', 'RSpec::Core::Formatters::GorgonRspecFormatter', filename ] err, out = StringIO.new, StringIO.new keep_config_modules do RSpec::Core::Runner.run(args, err, out) end out.rewind Yajl::Parser.new(symbolize_keys: true).parse(out.read) end |
.runner ⇒ Object
26 27 28 |
# File 'lib/gorgon/rspec_runner.rb', line 26 def runner :rspec end |