test: continue switch to rspec-mocks#2059
test: continue switch to rspec-mocks#2059thompson-tomo wants to merge 13 commits intoopen-telemetry:mainfrom
Conversation
|
Thanks for doing this. Something I'm trying to understand is if @open-telemetry/ruby-contrib-mainters are in agreement that we converge on using rspec mocks, or if we should exclusively use minitest |
|
No worries, I was just looking to unblock the renovate pr for minitest by replicating your previous work. 😉 hence the other pr #2061. |
robbkidd
left a comment
There was a problem hiding this comment.
While we figure out minitest vs rspec, I found one thing that needs looking into.
instrumentation/rake/test/opentelemetry/instrumentation/rake/patches/task_test.rb
Outdated
Show resolved
Hide resolved
Co-authored-by: Robb Kidd <robb@thekidds.org>
Er, I know why now. instrumentation-rake isn't named in the CI test matrix. 😬 Git spelunking turns up that the rake instrumentation was added around the same time as the old single CI definition was split into different workflows. I'm pretty sure we missed adding rake to the test matrix. 😅 We should update ci-instrumentation-full (rake needs no services):
@thompson-tomo, would you be up for including that CI update in this PR? 🥺 |
This continues the work in #2011
For Reviewers
Minitests stub method used a block to maintain the scope of the invocation. Switching to rspec mocks resulted in the block being removed and the white space changing in many places in the code so I recommend that you review this using "Hide the white space changes": https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/2059/changes?w=1