features/support/env.rb in xcpretty-0.0.2 vs features/support/env.rb in xcpretty-0.0.3
- old
+ new
@@ -16,10 +16,12 @@
def run_xcpretty flags
add_run_input SAMPLE_OCUNIT_SUITE_COMPLETION
add_run_input SAMPLE_EXECUTED_TESTS
input_file = Tempfile.new(INPUT_FILE)
- File.write(input_file.path, run_input)
+ File.open(input_file.path, 'w') do |file|
+ file.print run_input
+ end
@output = %x(cat '#{input_file.path}' | bin/xcpretty #{flags})
input_file.unlink
end
def add_run_input text
\ No newline at end of file