Skip to content

Integration with rspec/mocking #14

@mcandre

Description

@mcandre

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions