fix deprecation rspec errors
Merge pull request #1 from merongivian/fix-rspec-deprecation

fix deprecation rspec errors