plexus / yaks

Ruby library for building hypermedia APIs
http://rubygems.org/gems/yaks
MIT License
236 stars 26 forks source link

Document Development Tooling #81

Open plexus opened 9 years ago

plexus commented 9 years ago

Dumping this here for future reference, this will need to be expanded with actual explanations of what this all means and probably should become part of DEVELOPMENT.md

chastell commented 9 years ago

RSpec 3 gives you verified doubles, which are the major ‘selling poing’ behind Bogus. RSpec’s verified doubles work a little bit differently, though: they verify the double iff the doubled class is loaded. This has pros and cons: on one hand it lets you do outside-in implementation without having empty method calls on the lower layers, on the other it does not verify the double if for some reason you forgot to load the doubled class.

That said, there are two Bogus features that RSpec does not have (yet?):