fixing Rspec deprecation syntax