Use `allow` instead of `stub`
Merge pull request #124 from jpmoral/use_allow_instead_of_stub

Use `allow` instead of `stub`