Add specs for restrict.
Merge pull request #88 from apenney/restrict

Add specs for restrict.