Sha256: 5ac3efca1a823903f13dc91ad80cad2cd4d3251f5d2f7234b3f92a16feca01ba
Contents?: true
Size: 793 Bytes
Versions: 1
Compression:
Stored size: 793 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' config.backtrace_clean_patterns = [ /gems\//, /lib\/rspec\/(core|expectations|matchers|mocks)/, ] end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
therubyrhino-2.1.1 | spec/spec_helper.rb |