r509 / r509-ocsp-responder

An OCSP responder written in Ruby. Uses r509 and Sinatra.
http://langui.sh
Other
31 stars 17 forks source link

Testing without hitting Redis #5

Closed sirsean closed 12 years ago

sirsean commented 12 years ago

Since we're not injecting the Checker, we can't use mocks. Instead, I just open up R509::Validity::Redis::Checker and override the Checker#check method, and return the R509::Validity::Status object we expect in each test.

In other words, Ruby is pretty badass.