Skip to content

Commit b7674a1

Browse files
deivid-rodriguezmatzbot
authored andcommitted
[rubygems/rubygems] Get specs to run on JRuby and make them pass
Turns out we were not running specs on JRuby, so we introduced a failure. Seems fine to skip. rubygems/rubygems@4e2d6affb3
1 parent 8cd295e commit b7674a1

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

spec/bundler/install/gemfile/force_ruby_platform_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@
102102
end
103103

104104
it "reinstalls the ruby variant when a platform specific variant is already installed, the lockile has only ruby platform, and :force_ruby_platform is used in the Gemfile" do
105+
skip "Can't simulate platform reliably on JRuby, installing a platform specific gem fails to activate io-wait because only the -java version is present, and we're simulating a different platform" if RUBY_ENGINE == "jruby"
106+
105107
lockfile <<-L
106108
GEM
107109
remote: https://gem.repo4

spec/bundler/realworld/fixtures/warbler/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
source "https://rubygems.org"
44

55
gem "demo", path: "./demo"
6-
gem "jruby-jars", "~> 9.2"
6+
gem "jruby-jars", "~> 9.4"
77
gem "warbler", "~> 2.0"

spec/bundler/realworld/fixtures/warbler/Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PATH
66
GEM
77
remote: https://rubygems.org/
88
specs:
9-
jruby-jars (9.2.16.0)
9+
jruby-jars (9.4.8.0)
1010
jruby-rack (1.1.21)
1111
rake (13.0.1)
1212
rubyzip (1.3.0)
@@ -23,8 +23,8 @@ PLATFORMS
2323

2424
DEPENDENCIES
2525
demo!
26-
jruby-jars (~> 9.2)
26+
jruby-jars (~> 9.4)
2727
warbler (~> 2.0)
2828

2929
BUNDLED WITH
30-
2.5.0.dev
30+
2.6.0.dev

0 commit comments

Comments
 (0)