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 example for .toImplement() uses a hash where the key must exist, and implies that the value is the type the actual value should be. This method does not seem to test for individual types off the actual object, and fails when we build a mock object that is exactly what the test expects, ie:
The example for .toImplement() uses a hash where the key must exist, and implies that the value is the type the actual value should be. This method does not seem to test for individual types off the actual object, and fails when we build a mock object that is exactly what the test expects, ie:
This will pass:
but so will this:
Even though
baz
is a string but is expected to be a number.If this is just checking for the existance of all attributes, why not have toImplement accept an array of the hash keys?
The text was updated successfully, but these errors were encountered: