Sha256: 35b4095b209b5f09419a0153e2d9830a64ba6886cea8695065fde902b86cb67e
Contents?: true
Size: 423 Bytes
Versions: 74
Compression:
Stored size: 423 Bytes
Contents
require 'test_helper' class ArfReportStatusCalculatorTest < ActiveSupport::TestCase test 'it should save metrics as bits' do calc = ForemanOpenscap::ArfReportStatusCalculator.new(:counters => { 'passed' => 25, 'othered' => 1024, 'failed' => 10 }) assert_equal 25, calc.status['passed'] assert_equal ForemanOpenscap::ArfReport::MAX, calc.status['othered'] assert_equal 10, calc.status['failed'] end end
Version data entries
74 entries across 74 versions & 1 rubygems