Sha256: f819e8af8767493d8bdff6ace13464828abf9e75303f2025b3c21c250959ed6b

Contents?: true

Size: 307 Bytes

Versions: 5

Compression:

Stored size: 307 Bytes

Contents

require 'test_plugin_helper'

class ForemanHostReportsTest < ActiveSupport::TestCase
  test 'should find host reports by keyword' do
    report = FactoryBot.create(:host_report, :with_keyword)
    result = HostReport.search_for("keyword= HasError").pluck(:id)
    assert_include result, report.id
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_host_reports-1.0.2 test/unit/foreman_host_reports_test.rb
foreman_host_reports-1.0.1 test/unit/foreman_host_reports_test.rb
foreman_host_reports-1.0.0 test/unit/foreman_host_reports_test.rb
foreman_host_reports-0.0.4 test/unit/foreman_host_reports_test.rb
foreman_host_reports-0.0.3 test/unit/foreman_host_reports_test.rb