Putting the exit where it belongs

pull/4/head
Braydon Kains 5 years ago
parent 320c435ec2
commit d48d331e81

@ -37,6 +37,8 @@ OptionParser.parse do |parser|
else else
puts "No process found by the name %s" % p_name puts "No process found by the name %s" % p_name
end end
exit
end end
parser.on "-k PORT", "--kill-port=PORT", "Kill process on port" do |port| parser.on "-k PORT", "--kill-port=PORT", "Kill process on port" do |port|

@ -26,7 +26,7 @@ describe LtnpOperator do
end end
it "should not find record when process doesn't exist" do it "should not find record when process doesn't exist" do
sut.search_p_name(existing_p_name).nil?.should be_false sut.search_p_name(nonsense_p_name).nil?.should be_true
end end
end end
end end

Loading…
Cancel
Save