我正在使用以下红宝石脚本
describe command('curl -s -k - i %{http_code} https://localhost/xx/xxx') do
its(:stdout) { should match /200/ }
end
但我不确定这个脚本是否有效。如何确保此脚本有效?
我正在使用以下红宝石脚本
describe command('curl -s -k - i %{http_code} https://localhost/xx/xxx') do
its(:stdout) { should match /200/ }
end
但我不确定这个脚本是否有效。如何确保此脚本有效?