remove deprecation warnings by using new stub syntax
Merge pull request #88 from cllns/use-new-spec-syntax

Use new stub syntax (to remove deprecation warnings)