yast / yast-yast2

YaST module yast2
http://en.opensuse.org/Portal:YaST
GNU General Public License v2.0
55 stars 44 forks source link

Fix hash vs keyword arguments in RSpec expectations (bsc#1204871) #1279

Closed mvidner closed 1 year ago

mvidner commented 1 year ago

Problem

New rspec-mocks distinguish between hash and keyword arguments passed to with.

The tested code does use hashes but we've used keywords in tests because it's shorter to write. Fixed.

rspec-mocks 3.11.2 / 2022-10-25:

Bug Fixes: Support keyword argument semantics when constraining argument expectations using with on Ruby 3.0+ with instance_double https://github.com/rspec/rspec-mocks/pull/1473

Solution

Use hashes in tests instead of keywords

Testing

Screenshots

Not affected

yast-bot commented 1 year ago

:heavy_check_mark: Public Jenkins job #392 successfully finished :heavy_check_mark: Created OBS submit request #1033485

yast-bot commented 1 year ago

:heavy_check_mark: Internal Jenkins job #215 successfully finished :heavy_check_mark: Created IBS submit request #283695