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