Skip to content

Commit

Permalink
Resolve test failures on JRuby 9.4
Browse files Browse the repository at this point in the history
* TypeError: Cannot dup ENV, use ENV.to_h to get a copy of ENV as a hash
* LoadError: no such file to load -- rexml/document
  • Loading branch information
Phillip Aldridge committed Nov 8, 2023
1 parent 3a408c3 commit b08df0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spec/warbler/web_server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def self.reset_local_repository

describe Warbler::WebServer::Artifact do

@@_env = ENV.dup
@@_env = ENV.to_h

after(:all) { ENV.clear; ENV.update @@_env }

Expand Down
1 change: 1 addition & 0 deletions warbler.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ bundle up all of your application files for deployment to a Java environment.}
gem.required_ruby_version = ">= 2.5"

gem.add_runtime_dependency 'rake', ['>= 13.0.3']
gem.add_runtime_dependency 'rexml', '~> 3.0'
gem.add_runtime_dependency 'jruby-jars', ['>= 9.0.0']
gem.add_runtime_dependency 'jruby-rack', ['>= 1.1.1', '< 1.3']
gem.add_runtime_dependency 'rubyzip', '>= 1.0.0'
Expand Down

0 comments on commit b08df0b

Please sign in to comment.