rspec 3 deprecation removal

Fix for RSpec deprecation