berkshelf / ridley

A reliable Chef API client with a clean syntax
Other
231 stars 85 forks source link

Make specs RSpec 3 compatible #314

Closed 375gnu closed 9 years ago

375gnu commented 9 years ago

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

reset commented 9 years ago

@375gnu thanks!