spec/command/policy_spec.rb in conjur-cli-4.17.0 vs spec/command/policy_spec.rb in conjur-cli-4.18.0
- old
+ new
@@ -20,9 +20,11 @@
end
let(:resource) do
double("resource", exists?: true).as_null_object
end
before {
+ allow(File).to receive(:read).and_call_original
+ allow(File).to receive(:exists?).and_call_original
allow(File).to receive(:exists?).with("policy.rb").and_return true
allow(File).to receive(:read).with("policy.rb").and_return "{}"
allow_any_instance_of(Conjur::DSL::Runner).to receive(:api).and_return api
}
before {