Sha256: b18140c225afcd62761af41d78a51be2d6b676498e82217986d1d90e962b4034
Contents?: true
Size: 463 Bytes
Versions: 2
Compression:
Stored size: 463 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('Scaptimony::ScapContent.count', 1) do 2.times do ForemanOpenscap::BulkUpload.new.upload_from_files(scap_files) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_openscap-0.4.3 | test/lib/foreman_openscap/bulk_upload_test.rb |
foreman_openscap-0.4.2 | test/lib/foreman_openscap/bulk_upload_test.rb |