Fixes deprecation issues with RSpec3