Sha256: c18d461b0abf4de056e6008dd6973ae16f5215f0564f3ba39b46057b75c3d1b9

Contents?: true

Size: 713 Bytes

Versions: 9

Compression:

Stored size: 713 Bytes

Contents

require 'bundler'
Bundler.require

require "opal/rspec"

Opal::Config.arity_check_enabled = true

if Opal::RSpec.const_defined?("SprocketsEnvironment")
  sprockets_env = Opal::RSpec::SprocketsEnvironment.new
  sprockets_env.cache = Sprockets::Cache::FileStore.new("tmp")
  sprockets_env.add_spec_paths_to_sprockets
  run Opal::Server.new(sprockets: sprockets_env) { |s|
    s.main = 'opal/rspec/sprockets_runner'
    s.debug = false
    s.append_path 'spec/vendor'
    s.index_path = 'spec/index.html.erb'
  }
else
  run Opal::Server.new { |s|
    s.main = 'opal/rspec/sprockets_runner'
    s.append_path 'spec'
    s.append_path 'spec/vendor'
    s.debug = false
    s.index_path = 'spec/index.html.erb'
  }
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hyper-react-0.12.7 config.ru
hyper-react-0.12.6 config.ru
hyper-react-0.12.5 config.ru
hyper-react-0.12.4 config.ru
hyper-react-0.12.3 config.ru
hyper-react-0.12.2 config.ru
hyper-react-0.12.1 config.ru
hyper-react-0.12.0 config.ru
hyper-react-0.11.0 config.ru