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

Version Path
foreman_openscap-10.0.2 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-10.0.1 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-10.0.0 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-9.0.4 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-9.0.3 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-9.0.2 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-9.0.1 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-9.0.0 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-8.0.0 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-7.1.1 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-7.1.0 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-7.0.0 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-6.0.0 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-5.2.3 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-5.2.2 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-5.1.1 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-5.2.1 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-5.2.0 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-5.1.0 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-5.0.0 test/unit/arf_report_status_calculator_test.rb