fixed analyze_spec.rb typo
fixed analyze spec to work with thor