Skip to content

Commit

Permalink
Fix up profiling specs for rspec differences.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Mar 12, 2015
1 parent f8f85d0 commit f26dda1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/profiler/runtime_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit f26dda1

Please sign in to comment.