Skip to content

Commit

Permalink
embulk: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cho-m committed Sep 21, 2024
1 parent 57aecc6 commit 889c2cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Formula/e/embulk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def install
sha256 "ce537f21a2cfc34cf91fc834d8d1c663c6f3b5bca57cacd45fd4c47ede71c303"
end
testpath.install resource("jruby-complete")
jruby = "jruby=file://#{testpath}/jruby-complete-9.4.8.0.jar"
jruby = "jruby=file://#{testpath}/jruby-complete-#{resource("jruby-complete").version}.jar"

(testpath/"config.yml").write <<~EOS
in:
Expand All @@ -61,7 +61,9 @@ def install
type: stdout
EOS

system bin/"embulk", "-X", jruby, "gem", "install", "embulk", "embulk-input-http", "msgpack"
ENV["GEM_HOME"] = testpath/"gems"
system bin/"embulk", "-X", jruby, "gem", "install", "embulk", "--version", version.to_s
system bin/"embulk", "-X", jruby, "gem", "install", "embulk-input-http", "msgpack"
assert_match <<~EOS.chomp, shell_output("#{bin}/embulk -X #{jruby} preview config.yml")
+-------------+-----------------------------+--------------+----------------+
| number:long | command_run:string | count:string | percent:double |
Expand Down

0 comments on commit 889c2cf

Please sign in to comment.