Sha256: 6944a4e63853fb59a858e041dfc88973ab765fb603a94d9fbb08f46abd7612c7

Contents?: true

Size: 619 Bytes

Versions: 6

Compression:

Stored size: 619 Bytes

Contents

class MiniTest
  class Unit; end
end

Test = MiniTest

require 'opal/rspec/requires'
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

  # 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

6 entries across 6 versions & 2 rubygems

Version Path
opal-rspec-cj-0.4.4 opal/opal/rspec.rb
opal-rspec-0.4.3 opal/opal/rspec.rb
opal-rspec-0.4.2 opal/opal/rspec.rb
opal-rspec-0.4.1 opal/opal/rspec.rb
opal-rspec-0.4.0 opal/opal/rspec.rb
opal-rspec-0.4.0.beta4 opal/opal/rspec.rb