Skip to content

Commit

Permalink
exchange stubs for rspec syntax; remove shebang; fix file permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
zilchms committed Apr 3, 2024
1 parent 6c6687b commit 56b9bee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spec/unit/puppet/provider/nrpe_command/augeas_spec.rb
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env rspec

require 'spec_helper'

provider_class = Puppet::Type.type(:nrpe_command).provider(:augeas)
Expand Down Expand Up @@ -30,7 +28,7 @@
let(:target) { tmptarget.path }

it 'lists instances' do
provider_class.stubs(:target).returns(target)
allow(provider_class).to receive(:target).and_return(target)
inst = provider_class.instances.map do |p|
{
name: p.get(:name),
Expand Down

0 comments on commit 56b9bee

Please sign in to comment.