Sha256: 24c8e3f52edcf5b96a40c466c64ed68a52dbbff24955b2b88ad3f606030cd9d7

Contents?: true

Size: 703 Bytes

Versions: 1

Compression:

Stored size: 703 Bytes

Contents

require_relative '../spec_helper'

describe 'Deprecations' do
  def self.changed_constant(from:, to:)
    describe to do
      it 'is still accessible by its old name' do
        expect(from).to eq to
      end
    end
  end

  describe 'pre-3.0' do
    changed_constant from: HawkularUtilsMixin, to: Hawkular::ClientUtils
    changed_constant from: Hawkular::Operations::OperationsClient, to: Hawkular::Operations::Client
    changed_constant from: Hawkular::Alerts::AlertsClient, to: Hawkular::Alerts::Client
    changed_constant from: Hawkular::Token::TokenClient, to: Hawkular::Token::Client
    changed_constant from: Hawkular::Inventory::InventoryClient, to: Hawkular::Inventory::Client
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hawkular-client-2.9.0 spec/unit/deprecations_spec.rb