Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/profiler/runtime_spec.rb
Original file line number Diff line number Diff line change
@@ -38,9 +38,9 @@
def check_passed_spec(outcome)
# print any errors if occured :
@runtime.evalScriptlet("puts ERR_IO.string unless ERR_IO.string.empty?")
passed = (outcome.to_s.should == true.to_s)
expect(outcome.to_s).to eq(0.to_s)
ensure
unless passed
unless outcome.to_s == 0.to_s
puts "spec not passed, output: \n"
@runtime.evalScriptlet("puts OUT_IO.string")
end

0 comments on commit f26dda1

Please sign in to comment.