Kong / unirest-ruby

Unirest in Ruby: Simplified, lightweight HTTP client library.
http://unirest.io/ruby
MIT License
364 stars 81 forks source link

11/13 tests fail on ruby 2.0p247 #16

Open corprew opened 9 years ago

corprew commented 9 years ago
sevenspaces-3:~ corprew$ mkdir demo
sevenspaces-3:~ corprew$ cd demo
sevenspaces-3:demo corprew$ git clone https://github.com/Mashape/unirest-ruby.git
Cloning into 'unirest-ruby'...
remote: Counting objects: 489, done.
remote: Total 489 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (489/489), 87.12 KiB | 0 bytes/s, done.
Resolving deltas: 100% (210/210), done.
Checking connectivity... done.
sevenspaces-3:demo corprew$ cd unirest-ruby
sevenspaces-3:unirest-ruby (master)corprew$ rake test
/Users/corprew/.rvm/rubies/ruby-2.0.0-p247/bin/ruby -I"lib:test" -I"/Users/corprew/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.4.2/lib" "/Users/corprew/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.4.2/lib/rake/rake_test_loader.rb" "test/unirest_test.rb"
/Users/corprew/.rvm/gems/ruby-2.0.0-p247/gems/minitest-5.4.0/lib/minitest/assertions.rb:15: warning: already initialized constant MiniTest::Assertions::UNDEFINED
/Users/corprew/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/minitest/unit.rb:79: warning: previous definition of UNDEFINED was here
Run options:

# Running tests:

[ 1/13] Unirest::RequestsTest#test_: Unirest::Requests should Basic Authentication.  = 0.28 s
  1) Error:
test_: Unirest::Requests should Basic Authentication. (Unirest::RequestsTest):
NoMethodError: undefined method `assertions' for #<Unirest::RequestsTest:0x007fbfba0af8d0>
    /Users/corprew/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/test/unit/assertions.rb:38:in `assert'
    /Users/corprew/demo/unirest-ruby/test/unirest_test.rb:129:in `block in <class:RequestsTest>'
    /Users/corprew/.rvm/gems/ruby-2.0.0-p247/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'
corprew commented 9 years ago

This seems to be caused by https://github.com/seattlerb/minitest/issues/286, minitest moving from version 4.5 to 5 seems to have gotten a bunch of different projects recently.