Fix deprecation warnings; use shared_examples in specs
Merge pull request #6 from bdon/fix-rspec-warnings

Fix deprecation warnings; use shared_examples in specs