Sha256: 35b4095b209b5f09419a0153e2d9830a64ba6886cea8695065fde902b86cb67e

Contents?: true

Size: 423 Bytes

Versions: 75

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

75 entries across 75 versions & 1 rubygems

Version Path
foreman_openscap-0.11.2 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-0.11.1 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-0.11.0 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-0.10.4 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-0.10.3 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-0.10.2 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-0.10.1 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-0.9.3 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-0.10.0 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-0.8.6 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-0.9.2 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-0.9.1 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-0.8.5 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-0.9.0 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-0.8.4 test/unit/arf_report_status_calculator_test.rb