3838 subject ( :type ) { Puppet ::Type . type ( :minimal ) }
3939
4040 it { is_expected . not_to be_nil }
41- it { is_expected . to be_respond_to :instances }
41+ it { is_expected . to respond_to :instances }
4242 it { expect ( type . apply_to ) . to eq ( :host ) }
4343 end
4444
6464 subject ( :type ) { Puppet ::Type . type ( :both ) }
6565
6666 it { is_expected . not_to be_nil }
67- it { is_expected . to be_respond_to :instances }
67+ it { is_expected . to respond_to :instances }
6868 it { expect ( type . instance_variable_get ( :@doc ) ) . to eq 'the docs' }
6969 end
7070 end
@@ -279,7 +279,7 @@ def extract_values(function)
279279 # rubocop:enable Lint/BooleanSymbol
280280 end
281281
282- context 'with a basic provider' , agent_test : true do
282+ context 'with a basic provider' , :agent_test do
283283 let ( :provider_class ) do
284284 Class . new do
285285 def get ( _context )
@@ -322,7 +322,7 @@ def set(_context, _changes); end
322322 test_enum : 'a' , test_variant_pattern : '0xAEF123FF' , test_url : 'http://example.com' }
323323 end
324324
325- context 'with a bad provider' , agent_test : true do
325+ context 'with a bad provider' , :agent_test do
326326 before do
327327 stub_const ( 'Puppet::Provider::TypeCheck' , Module . new )
328328 stub_const ( 'Puppet::Provider::TypeCheck::TypeCheck' , provider_class )
@@ -408,7 +408,7 @@ def set(_context, _changes); end
408408
409409 it ( 'has the secret value is set correctly' ) { expect ( instance [ :secret ] ) . to be_a Puppet ::Pops ::Types ::PSensitiveType ::Sensitive }
410410
411- context 'with a basic provider' , agent_test : true do
411+ context 'with a basic provider' , :agent_test do
412412 let ( :provider_class ) do
413413 Class . new do
414414 def get ( _context )
@@ -471,7 +471,7 @@ def set(_context, _changes); end
471471 end
472472 end
473473
474- context 'when registering a type that is ensurable' , agent_test : true do
474+ context 'when registering a type that is ensurable' , :agent_test do
475475 context 'when ensurable is correctly declared' do
476476 let ( :definition ) do
477477 {
@@ -787,7 +787,7 @@ def set(_context, _changes); end
787787 end
788788 end
789789
790- context 'when registering a type with an `init_only` attribute' , agent_test : true do
790+ context 'when registering a type with an `init_only` attribute' , :agent_test do
791791 let ( :definition ) do
792792 {
793793 name : 'init_behaviour' ,
@@ -913,7 +913,7 @@ def set(_context, _changes); end
913913 end
914914 end
915915
916- context 'when registering a type with an `read_only` attribute' , agent_test : true do
916+ context 'when registering a type with an `read_only` attribute' , :agent_test do
917917 let ( :definition ) do
918918 {
919919 name : 'read_only_behaviour' ,
@@ -1022,7 +1022,7 @@ def set(_context, _changes); end
10221022 end
10231023 end
10241024
1025- describe 'a provider that does not return the namevar' , agent_test : true do
1025+ describe 'a provider that does not return the namevar' , :agent_test do
10261026 subject ( :instance ) { Puppet ::Type . type ( :not_name_namevar ) }
10271027
10281028 let ( :provider_class ) do
@@ -1048,7 +1048,7 @@ def set(_context, changes) end
10481048 end
10491049 end
10501050
1051- context 'when registering a type with multiple namevars' , agent_test : true do
1051+ context 'when registering a type with multiple namevars' , :agent_test do
10521052 let ( :name ) { 'multiple' }
10531053 let ( :title_patterns ) { nil }
10541054 let ( :definition ) do
@@ -1332,7 +1332,7 @@ def set(_context, _changes); end
13321332 end
13331333 end
13341334
1335- context 'when registering a type with a mandatory boolean value' , agent_test : true do
1335+ context 'when registering a type with a mandatory boolean value' , :agent_test do
13361336 let ( :provider_class ) do
13371337 Class . new do
13381338 def get ( _context )
@@ -1418,7 +1418,7 @@ def set(_context, _changes); end
14181418 end
14191419 end
14201420
1421- describe '#load_provider' , agent_test : true do
1421+ describe '#load_provider' , :agent_test do
14221422 before { described_class . register_type ( definition ) }
14231423
14241424 context 'when loading a non-existing provider' do
@@ -1507,7 +1507,7 @@ class OtherDevice; end
15071507 end
15081508 end
15091509
1510- context 'with a provider that does canonicalization' , agent_test : true do
1510+ context 'with a provider that does canonicalization' , :agent_test do
15111511 let ( :definition ) do
15121512 {
15131513 name : 'canonicalizer' ,
@@ -1714,7 +1714,7 @@ def set(_context, changes)
17141714 end
17151715
17161716 context 'with a provider that has a custom
1717- generate' , agent_test : true do
1717+ generate' , :agent_test do
17181718 let ( :definition ) do
17191719 {
17201720 name : 'generator' ,
@@ -1798,7 +1798,7 @@ def set(_context, changes)
17981798 end
17991799 end
18001800
1801- context 'with a provider that does not need canonicalization' , agent_test : true do
1801+ context 'with a provider that does not need canonicalization' , :agent_test do
18021802 let ( :definition ) do
18031803 {
18041804 name : 'passthrough' ,
@@ -1927,7 +1927,7 @@ def set(_context, changes)
19271927 end
19281928 end
19291929
1930- context 'with a provider that does custom insync' , agent_test : true do
1930+ context 'with a provider that does custom insync' , :agent_test do
19311931 let ( :provider_class ) do
19321932 Class . new do
19331933 def insync? ( _context , _title , _attribute_name , _is_hash , _should_hash )
@@ -2052,7 +2052,7 @@ def set(_context, changes)
20522052 end
20532053 end
20542054
2055- context 'with a `remote_resource` provider' , agent_test : true do
2055+ context 'with a `remote_resource` provider' , :agent_test do
20562056 let ( :definition ) do
20572057 {
20582058 name : 'remoter' ,
@@ -2123,7 +2123,7 @@ class Wibble; end
21232123 end
21242124 end
21252125
2126- context 'with a `supports_noop` provider' , agent_test : true do
2126+ context 'with a `supports_noop` provider' , :agent_test do
21272127 let ( :definition ) do
21282128 {
21292129 name : 'test_noop_support' ,
@@ -2176,7 +2176,7 @@ def set(_context, _changes, noop: false); end
21762176 end
21772177 end
21782178
2179- context 'with a `simple_get_filter` provider' , agent_test : true do
2179+ context 'with a `simple_get_filter` provider' , :agent_test do
21802180 let ( :definition ) do
21812181 {
21822182 name : 'test_get_filter' ,
0 commit comments