Sha256: 79d3255edd89228ec2381f8b31ae843b967f7ff102b3a45c17ffa6da507a78de
Contents?: true
Size: 682 Bytes
Versions: 3
Compression:
Stored size: 682 Bytes
Contents
require 'rhino' begin require 'mocha/api' rescue LoadError require 'mocha' end require 'redjs' module RedJS Context = Rhino::Context Error = Rhino::JSError end module Rhino module SpecHelpers def context_factory @context_factory ||= Rhino::JS::ContextFactory.new end def context @context || context_factory.call { |ctx| @context = ctx } @context end def scope context.initStandardObjects(nil, false) end end end RSpec.configure do |config| config.filter_run_excluding :compat => /(0.5.0)|(0.6.0)/ # RedJS config.include Rhino::SpecHelpers config.deprecation_stream = 'spec/deprecations.log' end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
therubyrhino-2.0.5 | spec/spec_helper.rb |
therubyrhino-2.0.4 | spec/spec_helper.rb |
therubyrhino-2.0.3 | spec/spec_helper.rb |