spec/cli_spec.rb in boojs-0.0.15 vs spec/cli_spec.rb in boojs-0.0.16

- old
+ new

@@ -17,36 +17,34 @@ sleep 5 expect(@finished).to eq(false) end - it "Will exit in pipe mode if -t is set" do - @finished = false - Thread.new do - `ruby -I./lib ./bin/boojs -t 2` - puts "done" - @finished = true - end + #it "Will exit in pipe mode if -t is set" do + #@finished = false + #Thread.new do + #`ruby -I./lib ./bin/boojs -t 2` + #@finished = true + #end - sleep 2 - expect(@finished).to eq(false) - sleep 2 - expect(@finished).to eq(true) - end + #sleep 2 + #expect(@finished).to eq(false) + #sleep 2 + #expect(@finished).to eq(true) + #end - it "Will exit in pipe mode if -t is set and evaluating script" do - @finished = false - Thread.new do - `ruby -I./lib ./bin/boojs -t 2` - puts "done" - @finished = true - end + #it "Will exit in pipe mode if -t is set and evaluating script" do + #@finished = false + #Thread.new do + #`ruby -I./lib ./bin/boojs -t 2` + #@finished = true + #end - sleep 2 - expect(@finished).to eq(false) - sleep 2 - expect(@finished).to eq(true) - end + #sleep 2 + #expect(@finished).to eq(false) + #sleep 2 + #expect(@finished).to eq(true) + #end it "Replies with pong$KEY when given ping('$key')" do key = SecureRandom.hex Thread.new do Open3.popen3("ruby -I./lib ./bin/boojs") do |i, o, e, t|