Sha256: 9a6959a3e4ac4a449ba8f9d1a87e5d3e7f4d1efe3258fdb409ea580b613d8757
Contents?: true
Size: 738 Bytes
Versions: 1
Compression:
Stored size: 738 Bytes
Contents
require "spec_helper" describe Kernel do describe "#_tagen_wrap_cmd" do it do expect(_tagen_wrap_cmd("ls -l", true)).to eq("ls -l") expect(_tagen_wrap_cmd("ls -l", "$")).to eq("$ ls -l") expect(_tagen_wrap_cmd("ls -l", "#")).to eq("# ls -l") end end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tagen-2.0.2 | spec/tagen/core/kernel/shell_spec.rb |