I've converted specs to RSpec 3.0.4 syntax with Transpec then undid .stub() changes because for some strange reason with new syntax tests were failing. I don't understand why but original methods were called instead of stubbed ones. While for my own trivial object with #find and #regenerate_key everything was working fine. But as old syntax was working properly I decided to leave it for .stub().
I've converted specs to RSpec 3.0.4 syntax with Transpec then undid .stub() changes because for some strange reason with new syntax tests were failing. I don't understand why but original methods were called instead of stubbed ones. While for my own trivial object with #find and #regenerate_key everything was working fine. But as old syntax was working properly I decided to leave it for .stub().
Here is my question regarding this issue in debian's mail list: https://lists.debian.org/debian-ruby/2015/08/msg00008.html