Skip to content

Commit

Permalink
Add WEBrick dependency
Browse files Browse the repository at this point in the history
This is required for Ruby 3.0, where the WEBrick was completely removed resulting in test failures such as:

~~~
$ bundle exec rake
/home/travis/.rvm/rubies/ruby-head/bin/ruby -I/home/travis/.rvm/gems/ruby-head/gems/rspec-core-3.10.1/lib:/home/travis/.rvm/gems/ruby-head/gems/rspec-support-3.10.1/lib /home/travis/.rvm/gems/ruby-head/gems/rspec-core-3.10.1/exe/rspec --pattern spec/\*\*/\*_spec.rb -c -f progress -r ./spec/spec_helper.rb
An error occurred while loading ./spec/spec_helper.rb. - Did you mean?
                    rspec ./spec/unit/response_spec.rb
Failure/Error: require 'webrick'
LoadError:
  cannot load such file -- webrick
# ./spec/support/webmock_server.rb:1:in `require'
# ./spec/support/webmock_server.rb:1:in `<top (required)>'
# ./spec/spec_helper.rb:20:in `require'
# ./spec/spec_helper.rb:20:in `<top (required)>'
No examples found.
~~~

Fixes #924
  • Loading branch information
voxik authored Jan 13, 2021
1 parent c2721df commit ae9d09f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webmock.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'minitest', '>= 5.0.0'
s.add_development_dependency 'test-unit', '>= 3.0.0'
s.add_development_dependency 'rdoc', '> 3.5.0'
s.add_development_dependency 'webrick'

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
Expand Down

0 comments on commit ae9d09f

Please sign in to comment.