Sha256: 769495fa5852731b3bb3e1bec5f41cb9dea234dc2d5deec9cd52234f6ff4b38a

Contents?: true

Size: 1.12 KB

Versions: 2

Compression:

Stored size: 1.12 KB

Contents

require 'opal'
require 'opal/rspec/version'
require 'opal/rspec/sprockets_environment'

# Just register our opal code path with opal build tools
Opal.append_path File.expand_path('../../../opal', __FILE__)

# Catch our git submodule included directories
%w{rspec rspec-core rspec-expectations rspec-mocks rspec-support}.each do |gem|
  Opal.append_path File.expand_path("../../../#{gem}/lib", __FILE__)
end

# Since we have better specs than before (and a script to deal with this), ignoring
Opal::Config.dynamic_require_severity = :ignore

stubs = [
  'mutex_m', # Used with some threading operations but seems to run OK without this
  'prettyprint',
  'tempfile', # Doesn't exist in Opal
  'diff/lcs',
  'diff/lcs/block',
  'diff/lcs/callbacks',
  'diff/lcs/change',
  'diff/lcs/hunk',
  'diff/lcs/internals',
  'test/unit/assertions',
  # Opal doesn't have optparse, yet
  'optparse',
  'shellwords',
  'socket',
  'uri',
  'drb/drb',
  'cgi/util',
  'minitest', # RSpec uses require to see if minitest is there, opal/sprockets won't like that, so stub it
  'minitest/unit',
  'minitest/assertions'
]

::Opal::Config.stubbed_files.merge(stubs)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
opal-rspec-0.6.0 lib/opal/rspec.rb
opal-rspec-0.6.0.beta1 lib/opal/rspec.rb