Sha256: 5b5f4acc7e0c2de8c4599ee969aa11ac554c4332f4b07ba08f3e80c279a38a2f
Contents?: true
Size: 496 Bytes
Versions: 2
Compression:
Stored size: 496 Bytes
Contents
require "spec_helper" describe Kernel do describe "#system" do it "" do should_receive(:system_without_tagen).with("foo -l", {}) output = capture :stdout do system("foo -l", show_cmd: true) end expect(output).to eq("foo -l\n") end end describe "#sh" do it "" do should_receive(:`).with("foo -l") output = capture :stdout do sh("foo -l", show_cmd: true) end expect(output).to eq("foo -l\n") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tagen-2.0.1 | spec/tagen/core/kernel/shell_spec.rb |
tagen-2.0.0 | spec/tagen/core/kernel/shell_spec.rb |