features/support/common.rb in hudson-0.3.0.beta.1 vs features/support/common.rb in hudson-0.3.0.beta.2

- old
+ new

@@ -1,5 +1,13 @@ module CommonHelpers + def get_command_output + strip_color_codes(File.read(@stdout)).chomp + end + + def strip_color_codes(text) + text.gsub(/\e\[\d+m/, '') + end + def in_tmp_folder(&block) FileUtils.chdir(@tmp_root, &block) end def in_project_folder(&block) \ No newline at end of file