Skip to content

Commit

Permalink
Set expectation back when readong local file
Browse files Browse the repository at this point in the history
  • Loading branch information
diegotoral committed Jun 14, 2023
1 parent 2f70602 commit 0b6f8c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/k8s/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
end

it 'loads a file if found' do
allow(File).to receive(:read).with('/etc/kubernetes/kubelet.conf').and_return(kubeconfig)
expect(File).to receive(:read).with('/etc/kubernetes/kubelet.conf').and_return(kubeconfig)
expect(subject.autoconfig).to be_a K8s::Client
end
end
Expand Down

0 comments on commit 0b6f8c5

Please sign in to comment.