We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2eca01d commit 067ff15Copy full SHA for 067ff15
test/helper.rb
@@ -4,14 +4,14 @@
4
require 'test/unit'
5
require 'test/unit/rr'
6
7
+# Embulk 0.10.x introduced new bootstrap mechanism.
8
+# https://github.com/embulk/embulk/blob/641f35fec064cca7b1a7314d634a4b64ef8637f1/embulk-ruby/test/vanilla/run-test.rb#L8-L13
9
+static_initializer = Java::org.embulk.EmbulkDependencyClassLoader.staticInitializer().useSelfContainedJarFiles()
10
+static_initializer.java_send :initialize
11
+
12
+require 'embulk/java/bootstrap'
13
require 'embulk'
-begin
- # Embulk ~> 0.8.x
- Embulk.setup
-rescue NotImplementedError, NoMethodError, NameError
- # Embulk ~> 0.9.x
- require 'embulk/java/bootstrap'
14
-end
15
Embulk.logger = Embulk::Logger.new('/dev/null')
16
17
APP_ROOT = File.expand_path('../', __dir__)
0 commit comments