Created
June 30, 2010 14:27
-
-
Save rbxbx/458721 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pull the english out of your specs, for great porting | |
lines = [] | |
File.read(ARGV.pop).each_line do |line| | |
next unless line =~ /^\s*(context|it|describe)/ | |
line.gsub(/#{$1}.*('|")/,'').gsub(/('|")\s+do/,'') | |
lines << line | |
end | |
puts lines.join |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment