remove extra .gitignore lines
replace if for case statement
return nil if the summary is not found
split #extract_summary specs into their own contexts
use shared example for common spec