Closed sirsean closed 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.
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.