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-2.0.1 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-1.0.9 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-2.0.0 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-1.0.8 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-1.0.7 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-1.0.6 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-1.0.5 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-1.0.4 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-1.0.3 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-1.0.2 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-1.0.1 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-1.0.0 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-0.12.3 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-0.11.5 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-0.12.2 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-0.12.1 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-0.12.0 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-0.11.4 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-0.11.3 test/unit/arf_report_status_calculator_test.rb
foreman_openscap-0.11.2 test/unit/arf_report_status_calculator_test.rb