Skip to content

brianauton/rspec-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Automatic contract verification for your RSpec suite

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages