Sha256: b380000ab63f3dbda9a6f8800bef94ad1a852b92d533edf03ebeba188b359198

Contents?: true

Size: 408 Bytes

Versions: 2

Compression:

Stored size: 408 Bytes

Contents

require 'opal/rspec/formatter/browser_formatter'

RSpec.configure do |config|
  config.default_formatter = ::Opal::RSpec::BrowserFormatter
end

# Trigger #at_exit callbacks once the DOM is ready
kernel_exit = Kernel.method(:exit).to_proc
if JS[:document].JS[:readyState] == :complete
  JS[:setTimeOut].call(kernel_exit, 1)
else
  JS[:document].JS.addEventListener('DOMContentLoaded', kernel_exit, false)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
opal-rspec-0.7.0.rc.2 lib-opal/opal/rspec/browser.rb
opal-rspec-0.7.0.rc.1 lib-opal/opal/rspec/browser.rb