fix spec deprecations
Merge pull request #111 from jch/fix-spec-deprecations

Fix spec deprecations