Sha256: 2a2068e7fdbc856cfef8e88876bc1b19096c5563f7cf92b0e80080f46165c7a3

Contents?: true

Size: 682 Bytes

Versions: 7

Compression:

Stored size: 682 Bytes

Contents

require 'file'
require 'dir'
require 'thread'

# vendor a pre-built rspec
require 'opal/rspec/rspec'

require 'opal/rspec/fixes'
require 'opal/rspec/text_formatter'
require 'opal/rspec/browser_formatter'
require 'opal/rspec/runner'
require 'opal/rspec/async'

RSpec.configure do |config|
  # For now, always use our custom formatter for results
  config.formatter = Opal::RSpec::Runner.default_formatter

  # Async helpers for specs
  config.include Opal::RSpec::AsyncHelpers
  config.extend Opal::RSpec::AsyncDefinitions

  # Always support expect() and .should syntax (we should not do this really..)
  config.expect_with :rspec do |c|
    c.syntax = [:should, :expect]
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
opal-rspec-0.3.0.beta3 opal/opal/rspec.rb
opal-rspec-0.3.0.beta2 opal/opal/rspec.rb
opal-rspec-0.3.0.beta1 opal/opal/rspec.rb
opal-rspec-0.2.1 opal/opal/rspec.rb
opal-rspec-0.2.0 opal/opal/rspec.rb
opal-rspec-0.1.0 opal/opal/rspec.rb
opal-rspec-0.0.1.beta2 opal/opal/rspec.rb