File: spec_helper.rb

package info (click to toggle)
ruby-autoprefixer-rails 8.6.5%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324 kB
  • sloc: ruby: 637; sh: 14; makefile: 14
file content (16 lines) | stat: -rw-r--r-- 373 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
ENV['RAILS_ENV'] ||= 'test'

require_relative 'app/config/environment'
require_relative '../lib/autoprefixer-rails'

require 'rspec/rails'

STDERR.puts "ExecJS runtime is #{ExecJS.runtime.class}"

RSpec.configure do |c|
  c.filter_run_excluding not_jruby: RUBY_PLATFORM == 'java'
end

def sprockets_4?
  Gem::Version.new(Sprockets::VERSION) > Gem::Version.new("4.0.x")
end