changed rspec syntax `stub` to `allow`
Merge pull request #3175 from enbaglisash/patch

changed rspec syntax `stub` to `allow`