Skip to content

Instantly share code, notes, and snippets.

@pboling
Last active October 10, 2015 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pboling/3714897 to your computer and use it in GitHub Desktop.
Save pboling/3714897 to your computer and use it in GitHub Desktop.
compare specs run by rake & autotest
rake_files = "#{list of files copied from console when rake command is run}"
autotest_files = "#{list of files copied from console when autotest command is run}"
r = rake_files.split(' ').map {|x| ar = x.split('/'); ar[(ar.length-2)..(ar.length-1)].join('/')}
a = autotest_files.split(' ').map {|x| ar = x.gsub(/'/,'').split('/'); ar[(ar.length-2)..(ar.length-1)].join('/')}
# autotest will generally be lacking some, as its config becomes out of date
diff = r - a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment