summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-05 22:39:11 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-06 14:02:57 +0100
commit59e30c0cfa93ef966bcea800b24d086057f5302f (patch)
tree3ca60ab4aef17281c6672363646bc17c17c4edee
parent197f46e7d670f3cf2a84f2293498e617b486d31f (diff)
downloadbundler-59e30c0cfa93ef966bcea800b24d086057f5302f.tar.gz
Use newest `ruby-graphviz` for rubies that support it
It should fix the current ruby-head build.
-rw-r--r--spec/commands/viz_spec.rb2
-rw-r--r--spec/other/major_deprecation_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/commands/viz_spec.rb b/spec/commands/viz_spec.rb
index e21d52feed..fbfd3fcc09 100644
--- a/spec/commands/viz_spec.rb
+++ b/spec/commands/viz_spec.rb
@@ -2,7 +2,7 @@
RSpec.describe "bundle viz", :bundler => "< 3", :if => Bundler.which("dot") do
let(:ruby_graphviz) do
- "ruby-graphviz --version 1.2.4"
+ "ruby-graphviz --version #{RUBY_VERSION >= "2.4" ? "1.2.5" : "1.2.4"}"
end
before do
diff --git a/spec/other/major_deprecation_spec.rb b/spec/other/major_deprecation_spec.rb
index 4bf07e7844..a0ea2d0c4b 100644
--- a/spec/other/major_deprecation_spec.rb
+++ b/spec/other/major_deprecation_spec.rb
@@ -543,7 +543,7 @@ The :gist git source is deprecated, and will be removed in the future. Add this
context "bundle viz" do
let(:ruby_graphviz) do
- "ruby-graphviz --version 1.2.4"
+ "ruby-graphviz --version #{RUBY_VERSION >= "2.4" ? "1.2.5" : "1.2.4"}"
end
before do