Sha256: 8e2f77353ee8acff51e6c7113fe9ed5a9c0f885d83c415546f69059f52aa8816
Contents?: true
Size: 433 Bytes
Versions: 77
Compression:
Stored size: 433 Bytes
Contents
require 'helper' require 'thor/base' describe "Exit conditions" do it "exits 0, not bubble up EPIPE, if EPIPE is raised" do epiped = false command = Class.new(Thor) do desc "my_action", "testing EPIPE" define_method :my_action do epiped = true raise Errno::EPIPE end end expect{ command.start(["my_action"]) }.to raise_error(SystemExit) expect(epiped).to eq(true) end end
Version data entries
77 entries across 69 versions & 15 rubygems