test/helper.rb in embulk-output-bigquery-0.4.13 vs test/helper.rb in embulk-output-bigquery-0.4.14
- old
+ new
@@ -1,14 +1,15 @@
#!/usr/bin/env ruby
+require 'bundler/setup'
require 'test/unit'
require 'test/unit/rr'
require 'embulk'
begin
# Embulk ~> 0.8.x
Embulk.setup
-rescue NotImplementedError
+rescue NotImplementedError, NoMethodError, NameError
# Embulk ~> 0.9.x
require 'embulk/java/bootstrap'
end
Embulk.logger = Embulk::Logger.new('/dev/null')