Sha256: a8a11e91b61e0aca8eba9a1f380f2917bf72f3158d447358fb0c1337141ffdda
Contents?: true
Size: 468 Bytes
Versions: 1
Compression:
Stored size: 468 Bytes
Contents
require 'test_plugin_helper' class BulkUploadTest < ActiveSupport::TestCase setup do require 'foreman_openscap/bulk_upload' end test 'upload_from_files should create only one scap content' do scap_files = ['../foreman_openscap/test/files/scap_contents/ssg-fedora-ds.xml'] assert_difference('ForemanOpenscap::ScapContent.count', 1) do 2.times do ForemanOpenscap::BulkUpload.new.upload_from_files(scap_files) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_openscap-0.5.0 | test/lib/foreman_openscap/bulk_upload_test.rb |