You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following was discovered through RSpec Mocks and I'm cross posting it just in-case. Given the following code:
allow(described_class).to receive(:new).and_wrap_original do |method, *args, **kwd|
kwd[:root] = true unless kwd.key?(:root) || kwd.key?(:root_metadata)
method.call(*args, **kwd)
end
The method being wrapped never receives the kwd, this was discovered when our specs started failing on JRuby when we started defaulting to reduce duplication in our specs, which ultimately was dumb anyways but it still surfaced an inconsistency.
I would be incredibly surprised if we do not already have a test/spec on this between the testing suites so closing. I will close against next release so people can notice this was fixed in release notes.
The following was discovered through RSpec Mocks and I'm cross posting it just in-case. Given the following code:
The method being wrapped never receives the kwd, this was discovered when our specs started failing on JRuby when we started defaulting to reduce duplication in our specs, which ultimately was dumb anyways but it still surfaced an inconsistency.
RSpec Mocks Ticket: rspec/rspec-mocks#1045
The text was updated successfully, but these errors were encountered: