Sha256: f9eb6d83176786d94455e6a1dfe79d160932feb8ef7b22f65c60c2429e76f9ad

Contents?: true

Size: 893 Bytes

Versions: 13

Compression:

Stored size: 893 Bytes

Contents

require 'opal/rspec'
require 'opal/sprockets/server'

Opal::Config.source_map_enabled = false
Opal::Config.arity_check_enabled = true

sprockets_env = Opal::RSpec::SprocketsEnvironment.new(spec_pattern         = 'spec-opal/**/*_spec.{rb,opal}',
                                                      spec_exclude_pattern = nil,
                                                      spec_files           = nil,
                                                      default_path         = 'spec-opal')

sprockets_env.cache = ::Sprockets::Cache::FileStore.new(File.join('tmp', 'cache', 'opal_specs'))
run Opal::Sprockets::Server.new(sprockets: sprockets_env) { |s|
  s.main = 'sprockets_runner_js_errors'
  # sprockets_runner_js_errors will not be in the opal load path by default
  s.append_path 'spec/integration/rack'
  sprockets_env.add_spec_paths_to_sprockets
  s.debug = ENV['OPAL_DEBUG']
}

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
opal-rspec-1.1.0.alpha3 config.ru
opal-rspec-1.1.0.alpha2 config.ru
opal-rspec-1.1.0.alpha1 config.ru
opal-rspec-1.0.0 config.ru
opal-rspec-1.0.0.alpha1 config.ru
opal-rspec-0.8.0 config.ru
opal-rspec-0.8.0.alpha3 config.ru
opal-rspec-0.8.0.alpha2 config.ru
opal-rspec-0.8.0.alpha1 config.ru
opal-rspec-0.7.1 config.ru
opal-rspec-0.7.0 config.ru
opal-rspec-0.7.0.rc.2 config.ru
opal-rspec-0.7.0.rc.1 config.ru