test/helper.rb in embulk-output-bigquery-0.4.10 vs test/helper.rb in embulk-output-bigquery-0.4.11

- old
+ new

@@ -1,12 +1,17 @@ #!/usr/bin/env ruby require 'test/unit' require 'test/unit/rr' -# require 'embulk/java/bootstrap' require 'embulk' -Embulk.setup +begin + # Embulk ~> 0.8.x + Embulk.setup +rescue NotImplementedError + # Embulk ~> 0.9.x + require 'embulk/java/bootstrap' +end Embulk.logger = Embulk::Logger.new('/dev/null') APP_ROOT = File.expand_path('../', __dir__) EXAMPLE_ROOT = File.expand_path('../example', __dir__) TEST_ROOT = File.expand_path(File.dirname(__FILE__))