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
I have class that takes a complex hash as one of its parameters, I'd like to test that this hash includes a particular key/value under a certain context.
Right now I have to convert the include matcher to a proc to make this work:
It'd be great if the built-in rspec matchers (or anything that conforms to the protocol - https://github.com/rspec/rspec-expectations/blob/master/lib/rspec/matchers/matcher_protocol.rb) could be used when testing a class parameter.
I have class that takes a complex hash as one of its parameters, I'd like to test that this hash includes a particular key/value under a certain context.
Right now I have to convert the
include
matcher to a proc to make this work:I'd be nice if this matcher could be composed in a more fluid manner.
The text was updated successfully, but these errors were encountered: