Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (11 sloc) 0.383 kb
require 'spec_helper'
require 'cane/threshold_check'
describe Cane::ThresholdCheck do
it 'returns a value of unavailable when file cannot be read' do
check = Cane::ThresholdCheck.new(gte: [['bogus_file', 20]])
violations = check.violations
violations.length.should == 1
violations[0][:label].should ==
'bogus_file is unavailable, should be >= 20'
end
end
Jump to Line
Something went wrong with that request. Please try again.