File: test_freeze_loading.rb

package info (click to toggle)
ruby-jar-dependencies 0.5.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,172 kB
  • sloc: ruby: 2,407; sh: 137; xml: 117; java: 20; makefile: 9
file content (17 lines) | stat: -rw-r--r-- 348 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require 'jar-dependencies'

Jars.freeze_loading

raise 'expected no env variable for freeze' if ENV[Jars::NO_REQUIRE]

raise 'expected no bouncycastle jars in classpath' if $CLASSPATH.detect { |c| c.include?('bouncycastle') }

begin
  require 'openssl'

  raise 'expected LoadError'
rescue LoadError
  # expected
end