Fix deprecation warnings: use new protocols for rspec 3
Merge pull request #3 from shin1ohno/master

Fix deprecation warnings: use new protocols for rspec 3