search for: spec_cmd

Displaying 1 result from an estimated 1 matches for "spec_cmd".

2007 Jan 06
4
spec command and windows
...ster" test suite that spawns new process for all of the test suites and spec suites. Every works great on posix. Unfortunately on windows, spec was not found. The only way I figured to ensure we get to spec in a platform independent way is to call: success = true dir = File.dirname(__FILE__) spec_cmd = (RUBY_PLATFORM =~ /[^r]win/) ? ''C:\\ruby\\bin\\spec.cmd'' : ''spec'' success &&= system("#{spec_cmd} --format specdoc --diff unified #{dir}/project_dir/spec_suite.rb") # ... exit success Lame! Does somebody out there have a better solution? Coul...