Fixes RSpec deprecation warnings