Skip to content

Commit 42b2278

Browse files
committed
fix to run tests
1 parent 58f7cd7 commit 42b2278

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,29 @@ $ embulk run -X page_size=1 -b . -l trace example/example.yml
449449
450450
Place your embulk with `.jar` extension:
451451
452+
453+
```
454+
$ curl -o embulk.jar --create-dirs -L "http://dl.embulk.org/embulk-latest.jar"
455+
$ chmod a+x embulk.jar
456+
```
457+
458+
Investigate JRUBY\_VERSION included in the embulk.jar:
459+
460+
```
461+
$ echo JRUBY_VERSION | ./embulk.jar irb
462+
2019-08-10 00:59:11.866 +0900: Embulk v0.9.17
463+
Switch to inspect mode.
464+
JRUBY_VERSION
465+
"X.X.X.X"
466+
```
467+
468+
Install the same version of jruby (change X.X.X.X to the version shown above):
469+
452470
```
453-
$ cp -a $(which embulk) embulk.jar
471+
$ rbenv install jruby-X.X.X.X
472+
$ rbenv local jruby-X.X.X.X
473+
$ gem install bundler
474+
$ bundle install
454475
```
455476
456477
Run tests with `env RUBYOPT="-r ./embulk.jar`:

test/helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
begin
88
# Embulk ~> 0.8.x
99
Embulk.setup
10-
rescue NotImplementedError
10+
rescue NotImplementedError, NoMethodError, NameError
1111
# Embulk ~> 0.9.x
1212
require 'embulk/java/bootstrap'
1313
end

0 commit comments

Comments
 (0)