Sha256: b1dc9e285a7162e819adee7e43f5ac1a8f136f1eb120cb54b88aded9010191e3
Contents?: true
Size: 796 Bytes
Versions: 1
Compression:
Stored size: 796 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../../lib/rake_check/cucumber_checker') describe CucumberChecker do it "gives N/A on Error" do subject.stub('`' => 'Error') subject.result.should == { type: :cucumber, check_output: '', status: 'N/A' } end it "gives OK with no Errors" do subject.stub('`' => '8 scenarios (8 passed)') subject.result.should == { type: :cucumber, check_output: '', status: "\e[32mOK\e[0m" } end it "is red on Error" do subject.stub('`' => "8 scenarios (1 failed, 7 passed)") subject.result.should == { type: :cucumber, check_output: '', status: "\e[31m1 failed scenarios\e[0m" } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rake_check-0.1.4 | spec_no_rails/lib/rake_check/cucumber_checker_spec.rb |