test/tc/programs_util.rb in rio-0.4.2 vs test/tc/programs_util.rb in rio-0.5.1
- old
+ new
@@ -3,22 +3,22 @@
module RIO
module Programs
TEST_BIN_DIR = File.expand_path(Dir.pwd+'/bin')
XPROGS = {
- 'count_lines' => 'wc -l',
- 'find_lines' => 'grep',
- 'list_dir' => 'ls',
+ :count_lines => 'wc -l',
+ :find_lines => 'grep',
+ :list_dir => 'ls',
}
RPROGS = {
- 'count_lines' => "ruby #{TEST_BIN_DIR}/count_lines.rb",
- 'find_lines' => "ruby #{TEST_BIN_DIR}/find_lines.rb",
- 'list_dir' => "ruby #{TEST_BIN_DIR}/list_dir.rb",
+ :count_lines => "ruby #{TEST_BIN_DIR}/count_lines.rb",
+ :find_lines => "ruby #{TEST_BIN_DIR}/find_lines.rb",
+ :list_dir => "ruby #{TEST_BIN_DIR}/list_dir.rb",
}
PROG = {
- 'count_lines' => ($mswin32 ? RPROGS['count_lines'] : XPROGS['count_lines']),
- 'find_lines' => ($mswin32 ? RPROGS['find_lines'] : XPROGS['find_lines']),
- 'list_dir' => ($mswin32 ? RPROGS['list_dir'] : XPROGS['list_dir']),
+ :count_lines => ($mswin32 ? RPROGS[:count_lines] : XPROGS[:count_lines]),
+ :find_lines => ($mswin32 ? RPROGS[:find_lines] : XPROGS[:find_lines]),
+ :list_dir => ($mswin32 ? RPROGS[:list_dir] : XPROGS[:list_dir]),
}
end
end
end