replaced deprecated mock with double to remove warnings
replaced deprecated any_number_of_times with stub method syntax to remove warnings
Merge pull request #182 from gilles-leblanc/feature

Replaced deprecated mock and any_number_of_times that were used by RSpec mocks