Sha256: 814403f81e63d98adb7372449a824cc4e401e9f20809851f5fbdf695fee2fa53
Contents?: true
Size: 653 Bytes
Versions: 2
Compression:
Stored size: 653 Bytes
Contents
module Opal module RSpec module Formatters module PhantomUtil def finish_phantom(notification) if notification.pending_count > 0 finish_with_code(1) elsif notification.failure_count == 0 finish_with_code(0) else finish_with_code(1) end end def finish_with_code(code) %x{ if (typeof(phantom) !== "undefined") { phantom.exit(code); } else { Opal.global.OPAL_SPEC_CODE = code; } } end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
opal-rspec-formatter-1.0.1 | opal/opal/rspec/formatters/phantom_util.rb |
opal-rspec-formatter-1.0.0 | opal/opal/rspec/formatters/phantom_util.rb |