0.0
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Automatic contract checking for your RSpec suite
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

= 3.0.0.beta2
 Project Readme

rspec-contracts

Gem Version Build Status Code Climate

Automatic contract verification for your RSpec suite

Requirements

  • Rspec 3.0.0.beta2

Getting Started

Install the rspec-contracts gem alongside rspec in your gemfile.

group :development, :test do
  gem "rspec", "3.0.0.beta2"
  gem "rspec-contracts"
end

Then update your bundle.

$ bundle

Define doubles using contract_double, providing the contract name as the first argument.

user = contract_double(:user, email: "me@example.com")

Running the specs will then show a summary of unverified contracts.

$ rspec