Sha256: a5e3bc15b21f0a627e98be0fc18bef612f03706c772d443606becdbee6e18dc6
Contents?: true
Size: 601 Bytes
Versions: 1
Compression:
Stored size: 601 Bytes
Contents
#encoding: utf-8 require 'spec_helper' describe Formatter::YAML do before :each do @formatter = Formatter::YAML.new end it "outputs data as yaml string" do @formatter.stderr(["output of stderr"]) @formatter.stdout("output of stdout") @formatter.log_file("output of log file") @formatter.return_code("output of return code") @formatter.pid(4711) @formatter.status(:failed) @formatter.executable('/usr/bin/true') expect(@formatter.output(:stdout,:stderr)).to eq("---\n:stdout:\n- output of stdout\n:stderr:\n- output of stderr\n") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
command_exec-0.2.0 | spec/formatter/yaml_spec.rb |