class Specserv::RSpecAdapter
Public Instance Methods
run( source_path )
click to toggle source
# File lib/specserv/rspec_adapter.rb, line 6 def run( source_path ) RSpec.reset # create a StringIO to capture output errors = StringIO.new output = StringIO.new # run rspec RSpec::Core::Runner.run([source_path, '--format', 'html'], errors, output) # return the captured output output.string end