-
Notifications
You must be signed in to change notification settings - Fork 82
Closed
Labels
Description
I'm not sure how contracts should integrate with rspec tests and mocking, especially stubbed things and weird testing calls where you try to send nil
to a method that expects a String
. Sometimes when I insert a contract, the rspec tests break, and I'm not sure whether this means I've discovered a new edge case, or whether Contracts is simply being incompatible with rspec.
For now, I'm treating rspec tests as sacrosanct and omitting contracts for some of my methods (e.g. initializers #11).