Update to latest versions of dependencies

Update deprecated use of RSpec's `stub` to recommended `double`