@@ -1802,22 +1802,22 @@ def set(_context, changes) end
18021802
18031803 it { expect { described_class . register_type ( definition ) } . not_to raise_error }
18041804
1805- it 'is seen as a supported feature' do
1806- expect ( Puppet ) . not_to receive ( :warning ) . with ( %r{Unknown feature detected:.*simple_test_filter} )
1807- expect { described_class . register_type ( definition ) } . not_to raise_error
1808- end
1805+ context 'with the type registered' do
1806+ it 'is seen as a supported feature' do
1807+ expect ( Puppet ) . not_to receive ( :warning ) . with ( %r{Unknown feature detected:.*simple_test_filter} )
1808+ expect { described_class . register_type ( definition ) } . not_to raise_error
1809+ end
18091810
1810- it 'passes through the an empty array to `get`' do
1811- expect { described_class . register_type ( definition ) } . not_to raise_error
1812- expect ( provider ) . to receive ( :get ) . with ( anything , [ ] ) . and_return ( [ ] )
1813- type . instances
1814- end
1811+ it 'passes through the an empty array to `get`' do
1812+ expect ( provider ) . to receive ( :get ) . with ( anything , [ ] ) . and_return ( [ ] )
1813+ type . instances
1814+ end
18151815
1816- it 'passes through the resource title to `get`' do
1817- expect { described_class . register_type ( definition ) } . not_to raise_error
1818- instance = type . new ( name : 'bar' , ensure : 'present' )
1819- expect ( provider ) . to receive ( :get ) . with ( anything , [ 'bar' ] ) . and_return ( [ ] )
1820- instance . retrieve
1816+ it 'passes through the resource title to `get`' do
1817+ instance = type . new ( name : 'bar' , ensure : 'present' )
1818+ expect ( provider ) . to receive ( :get ) . with ( anything , [ 'bar' ] ) . and_return ( [ ] )
1819+ instance . retrieve
1820+ end
18211821 end
18221822 end
18231823
0 commit comments