Sha256: f3ada15ec71e49954e407e71cc74a6aa3ce47f9436b82490254fc47e2bfb8b32
Contents?: true
Size: 474 Bytes
Versions: 3
Compression:
Stored size: 474 Bytes
Contents
require "./lib/kommando" calls = [] calls_chained = [] k = Kommando.new("$ echo hello hello hello hell", { output: false }) k.out.every("hello") do calls << :got_hello end k.out.every("hello") do calls_chained << :got_hello end.every("hell") do calls_chained << :got_hell end k.run raise "err" unless calls == [:got_hello, :got_hello, :got_hello] raise "err chained" unless calls_chained == [:got_hello, :got_hell, :got_hello, :got_hell, :got_hello, :got_hell]
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kommando-0.1.2 | examples/every.rb |
kommando-0.1.1 | examples/every.rb |
kommando-0.1.0 | examples/every.rb |