Add spec test
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user