use double method to create dummy object. mock & stub methods are deprecated.
Merge pull request #299 from unakatsuo/rspec-mock-deprecation

Supress DEPRECATION messages while running spec.