Skip to content

Instantly share code, notes, and snippets.

@inohiro
Created April 30, 2012 16:01
Show Gist options
  • Save inohiro/2559551 to your computer and use it in GitHub Desktop.
Save inohiro/2559551 to your computer and use it in GitHub Desktop.
PATH = "/path/to/hoge"
Dir.glob( PATH + '*.rb' ) do |f|
puts f
# doesn't work correctly
exec( "rspec " + f ).to_s
# work correctly
result = system( 'rspec ' + f ).to_s
puts result
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment