From 7cec3f74616abf1eb2fcd6046a0675fcf0cb6efa Mon Sep 17 00:00:00 2001 From: Calvin Leung Huang Date: Wed, 13 Apr 2016 14:51:43 -0400 Subject: [PATCH] Add spec test --- spec/lib/zanzibar/actions/get_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/lib/zanzibar/actions/get_spec.rb b/spec/lib/zanzibar/actions/get_spec.rb index 7000866..5801539 100644 --- a/spec/lib/zanzibar/actions/get_spec.rb +++ b/spec/lib/zanzibar/actions/get_spec.rb @@ -47,6 +47,11 @@ describe Zanzibar::Cli do expect { subject.get(1234) }.to raise_error.with_message(/#{Zanzibar::NO_WSDL_ERROR}/) end + # it 'should be able to get a field value' do + # subject.options = { 'domain' => 'zanzitest.net', 'wsdl' => 'scrt.wsdl', 'fieldlabel' => 'Username' } + # expect { subject.get(1234) }.to output(/ZanziUser/).to_stdout + # end + it 'should be able to download files' do WebMock.reset! stub_request(:any, 'https://www.zanzitest.net/webservices/sswebservice.asmx')