spec/command/resources_spec.rb in conjur-cli-5.6.4 vs spec/command/resources_spec.rb in conjur-cli-5.6.5
- old
+ new
@@ -9,13 +9,9 @@
before :each do
allow(api).to receive(:resource).and_call_original
allow(api).to receive(:resource).with(full_resource_id).and_return(resource_instance)
end
- def invoke_silently
- expect { invoke }.to write
- end
-
shared_examples 'it displays resource attributes' do
it "as JSON to stdout" do
expect(JSON::parse( expect { invoke }.to write )).to eq(resource_attributes)
end
end