Fix deprecation warning with example for RSpec