Add spec test

This commit is contained in:
Calvin Leung Huang
2016-04-13 14:51:43 -04:00
parent 7f357ef60d
commit 7cec3f7461

View File

@@ -47,6 +47,11 @@ describe Zanzibar::Cli do
expect { subject.get(1234) }.to raise_error.with_message(/#{Zanzibar::NO_WSDL_ERROR}/) expect { subject.get(1234) }.to raise_error.with_message(/#{Zanzibar::NO_WSDL_ERROR}/)
end 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 it 'should be able to download files' do
WebMock.reset! WebMock.reset!
stub_request(:any, 'https://www.zanzitest.net/webservices/sswebservice.asmx') stub_request(:any, 'https://www.zanzitest.net/webservices/sswebservice.asmx')