Change stub! to stub and use doubles

Remove RSpec deprecation warnings: 
- `object.stub!` to `object.stub`
- `stub(:foo)` to `double(:foo)`