Sha256: 5585bef1dc418adb62f25cee9d8d4bf2bd3447bafe855d87b28448bd8d2da11b

Contents?: true

Size: 422 Bytes

Versions: 2

Compression:

Stored size: 422 Bytes

Contents

require 'test_helper'

module KatelloForemanEngine
  module Actions
    class EnvDestroyTest < ActiveSupport::TestCase

      test "runs only when the env is present in Foreman and it's not library" do
        org = Organization.new(:label => 'org')
        env = KTEnvironment.new(:label => 'dev')
        env.organization = org

        assert_equal [], run_steps(EnvironmentDestroy,{}, env)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
katello-foreman-engine-0.0.12 test/lib/actions/env_destroy_test.rb
katello-foreman-engine-0.0.11 test/lib/actions/env_destroy_test.rb