File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2828 before ( :each ) do
2929 allow ( File ) . to receive ( :exists? ) . with ( filename ) . and_return ( false ) . once
3030 if Puppet ::PUPPETVERSION [ 0 ] . to_i < 8
31- allow ( PSON ) . not_to receive ( :load )
31+ allow ( PSON ) . to receive ( :load ) . never # rubocop:disable RSpec/ReceiveNever Switching to not_to receive breaks testing in this case
3232 else
33- allow ( JSON ) . not_to receive ( :parse )
33+ allow ( JSON ) . to receive ( :parse ) . never # rubocop:disable RSpec/ReceiveNever
3434 end
3535 end
3636
Original file line number Diff line number Diff line change 77 describe '#with_puppet' do
88 context 'without Puppet loaded' do
99 before ( :each ) do
10- allow ( Module ) . to receive ( :const_get ) . with ( ' Puppet' ) . and_raise ( NameError )
10+ allow ( Module ) . to receive ( :const_get ) . with ( : Puppet) . and_raise ( NameError )
1111 end
1212
1313 it 'is nil' do
You can’t perform that action at this time.
0 commit comments