Sha256: fe7716e81f2a3eca0d3f3d5917fa93a596fc000a032b5c4a99dd7d28e553f343
Contents?: true
Size: 576 Bytes
Versions: 23
Compression:
Stored size: 576 Bytes
Contents
require 'test_plugin_helper' # unit tests for RolesImporter class RolesImporterTest < ActiveSupport::TestCase setup do @role = FactoryBot.create(:ansible_role) @importer = ForemanAnsible::RolesImporter.new end test 'should detect changes when importing roles' do role = FactoryBot.build(:ansible_role) changes = @importer.detect_changes [role] assert_equal 1, changes[:new].length assert_equal 1, changes[:obsolete].length assert_equal role.name, changes[:new].first.name assert_equal @role.name, changes[:obsolete].first.name end end
Version data entries
23 entries across 23 versions & 1 rubygems