Fix deprecation warning for RSpec 3