Fix RSpec 3 deprecation warning