Sha256: 54082018c1977175f702b0ee908004e6b1d3b7b3ff71d6c0e11fc4c498dd9126
Contents?: true
Size: 1.3 KB
Versions: 5
Compression:
Stored size: 1.3 KB
Contents
require_relative '../../spec_helper' describe Baleen::ResultDisplay do describe "#summary" do context "when all test passes" do it "should display Pass" do result = [ { "status_code" => 0, "container_id" => "aaaaaa", "log" => "brabrabra", "file" => "feature/t1.feature" }, { "status_code" => 0, "container_id" => "bbbbbb", "log" => "brabrabra", "file" => "feature/t2.feature" } ] displayer = Baleen::ResultDisplay.new(result, Time.now, Time.now+10) capture(:stdout) { displayer.summary }.should include 'Pass' end end context "when some test fails" do it "should display Fail" do result = [ { "status_code" => 0, "container_id" => "aaaaaa", "log" => "brabrabra", "file" => "feature/t1.feature" }, { "status_code" => 1, "container_id" => "bbbbbb", "log" => "brabrabra", "file" => "feature/t2.feature" } ] displayer = Baleen::ResultDisplay.new(result, Time.now, Time.now+10) capture(:stdout) { displayer.summary }.should include 'Fail' end end end end
Version data entries
5 entries across 5 versions & 1 rubygems