Skip to content

Commit

Permalink
Fix now invalid variable name (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
Blacksmoke16 authored May 12, 2020
1 parent c33d41e commit e76ebce
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/spec_helper.cr
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ require "../src/oq"

# Runs the the binary with the given *name* and *args*.
def run_binary(input : String? = nil, name : String = "bin/oq", args : Array(String) = [] of String, &block : String, Process::Status, String -> Nil)
buffer = IO::Memory.new
error = IO::Memory.new
in = IO::Memory.new
in << input if input
status = Process.run(name, args, output: buffer, input: in.rewind, error: error)
yield buffer.to_s, status, error.to_s
buffer_io = IO::Memory.new
error_io = IO::Memory.new
input_io = IO::Memory.new
input_io << input if input
status = Process.run(name, args, output: buffer_io, input: input_io.rewind, error: error_io)
yield buffer_io.to_s, status, error_io.to_s
end

0 comments on commit e76ebce

Please sign in to comment.