Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

Commit e2c1603

Browse files
author
Cainã Costa
committed
Add a spec file for planned deprecations
1 parent bfdcf48 commit e2c1603

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

spec/unit/deprecations_spec.rb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
require_relative '../spec_helper'
2+
3+
describe 'Deprecations' do
4+
def self.changed_constant(from:, to:)
5+
describe to do
6+
it 'is still accessible by its old name' do
7+
expect(from).to eq to
8+
end
9+
end
10+
end
11+
12+
describe 'pre-3.0' do
13+
changed_constant from: HawkularUtilsMixin, to: Hawkular::ClientUtils
14+
changed_constant from: Hawkular::Operations::OperationsClient, to: Hawkular::Operations::Client
15+
changed_constant from: Hawkular::Alerts::AlertsClient, to: Hawkular::Alerts::Client
16+
changed_constant from: Hawkular::Token::TokenClient, to: Hawkular::Token::Client
17+
changed_constant from: Hawkular::Inventory::InventoryClient, to: Hawkular::Inventory::Client
18+
end
19+
end

0 commit comments

Comments
 (0)