Skip to content
Browse files

Use platform specific cmd in spec

  • Loading branch information...
1 parent da74a17 commit c63704abfa0d2cc4055b8fd69dff537c1d662439 @bfaloona committed Feb 27, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 spec/search_spec.rb
View
5 spec/search_spec.rb
@@ -68,8 +68,9 @@
].join("\n"))
@file.flush
- cmd = "ruby -e 'puts File.open(\"#{@file_path}\").read'"
-
+ cmd = RUBY_PLATFORM.match(/(win|386|mingw)/) ?
+ "type #{@file_path}" :
+ "cat #{@file_path}"
@indy = Indy.search(:cmd => cmd)
end

0 comments on commit c63704a

Please sign in to comment.
Something went wrong with that request. Please try again.