Sha256: dab33130cc58245363f32e56cac3210bc05da024f0055bebe7f84fd916756700
Contents?: true
Size: 745 Bytes
Versions: 11
Compression:
Stored size: 745 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../../lib/rake_check/rbp_checker') describe RbpChecker do it "gives N/A on Error" do subject.stub(:`).and_return('Error') subject.result.should == { type: :rbp, check_output: 'Error', status: 'N/A' } end it "gives OK with no Errors" do subject.stub(:`).and_return('No warning found. Cool!') subject.result.should == { type: :rbp, check_output: '', status: "\e[32mOK\e[0m" } end it "gives warning message with Errors" do subject.stub(:`).and_return('Found 1 warnings.') subject.result.should == { type: :rbp, check_output: 'Found 1 warnings.', status: "\e[31mFound 1 warnings\e[0m" } end end
Version data entries
11 entries across 11 versions & 1 rubygems