File: spec_helper.rb

package info (click to toggle)
ruby-uglifier 2.7.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 260 kB
  • ctags: 68
  • sloc: ruby: 611; makefile: 8
file content (23 lines) | stat: -rw-r--r-- 529 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# encoding: UTF-8
require 'uglifier'
require 'rspec'
require 'source_map'

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

if ENV["ALASKA"]
  require 'alaska'
  require 'tempfile'
  ExecJS.runtime = Alaska::Runtime.new
end

RSpec.configure do |config|
  config.mock_with :rspec do |mock|
    mock.syntax = :expect
  end
  config.expect_with :rspec do |expect|
    expect.syntax = :expect
  end
end