summaryrefslogtreecommitdiff
path: root/spec/mspec/tool/find.rb
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-27 12:10:23 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-27 12:10:23 +0000
commitc13aa27e52c3ba10a329cf5a70b25fbf2a72d556 (patch)
treee9d0dbdd7424682ec9d94f9d5ff9c95d3a0229dd /spec/mspec/tool/find.rb
parentaa30bfd53651ff87983e5706a0d06706e8265c3b (diff)
Update to ruby/mspec@353605f
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/mspec/tool/find.rb')
-rwxr-xr-xspec/mspec/tool/find.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/mspec/tool/find.rb b/spec/mspec/tool/find.rb
new file mode 100755
index 0000000000..322b023f15
--- /dev/null
+++ b/spec/mspec/tool/find.rb
@@ -0,0 +1,10 @@
+#!/usr/bin/env ruby
+Dir.chdir('../rubyspec') do
+ regexp = Regexp.new(ARGV[0])
+ Dir.glob('**/*.rb') do |file|
+ contents = File.read(file)
+ if regexp =~ contents
+ puts file
+ end
+ end
+end