-
Notifications
You must be signed in to change notification settings - Fork 35
Drop the turn dependency #145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
resource.foos._embedded.orders.first.id.must_equal 1 | ||
resource.foos.first.must_equal nil | ||
resource.foos.first.must_be_nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
must_equal nil
would cause:
DEPRECATED: Use assert_nil if expecting nil from /Users/yuki/GitHub/hyperclient/test/hyperclient/link_test.rb:304. This will fail in Minitest 6.
Here's an example of a CHANGELOG.md entry: * [#145](https://github.com/codegram/hyperclient/pull/145): Drop the turn dependency - [@yuki24](https://github.com/yuki24). Generated by 🚫 Danger |
@@ -1,12 +1,11 @@ | |||
$LOAD_PATH << 'lib' | |||
|
|||
require 'minitest/spec' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This causes a circular dependency error:
/Users/yuki/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/minitest-5.11.3/lib/minitest.rb:987: warning: /Users/yuki/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/minitest-5.11.3/lib/minitest.rb:987: warning: loading in progress, circular require considered harmful - /Users/yuki/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/minitest-5.11.3/lib/minitest/test.rb
from /Users/yuki/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rake-12.3.3/lib/rake/rake_test_loader.rb:5:in `<main>'
from /Users/yuki/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rake-12.3.3/lib/rake/rake_test_loader.rb:5:in `select'
from /Users/yuki/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rake-12.3.3/lib/rake/rake_test_loader.rb:17:in `block in <main>'
from /Users/yuki/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rake-12.3.3/lib/rake/rake_test_loader.rb:17:in `require'
from /Users/yuki/GitHub/hyperclient/test/faraday/connection_test.rb:1:in `<top (required)>'
from /Users/yuki/GitHub/hyperclient/test/faraday/connection_test.rb:1:in `require_relative'
from /Users/yuki/GitHub/hyperclient/test/test_helper.rb:3:in `<top (required)>'
from /Users/yuki/GitHub/hyperclient/test/test_helper.rb:3:in `require'
from /Users/yuki/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/minitest-5.11.3/lib/minitest/spec.rb:1:in `<top (required)>'
from /Users/yuki/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/minitest-5.11.3/lib/minitest/spec.rb:1:in `require'
from /Users/yuki/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/minitest-5.11.3/lib/minitest/test.rb:1:in `<top (required)>'
from /Users/yuki/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/minitest-5.11.3/lib/minitest/test.rb:1:in `require'
from /Users/yuki/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/minitest-5.11.3/lib/minitest.rb:987:in `<top (required)>'
from /Users/yuki/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/minitest-5.11.3/lib/minitest.rb:987:in `require'
And it seems like this is unnecessary now, so just removing it.
What's up with this one? I can debug later. The |
Not sure what's going on with Danger. Maybe we can drop the following entirely? Lines 10 to 12 in 9528554
|
Rebase against master, #146 fixes the danger issues. |
👍 |
It seems like the
tern
gem is no longe maintained and I couldn't run the test suite after "bundle update", becauseTurn
thinks that minitest 5.11.3 is out of date even though it is the latest one:The latest version of
turn
has a constraint on the minitest gem~> 4
, which is more than 5 years old. I don't think we should use that. As a replacement I just addedrequire 'minitest/pride'
to make it a little colorful.Here is a screenshot of the output from the new setup: