remove unused tests

GSoC/Meterpreter_Web_Console
Brent Cook 2018-05-07 10:17:05 -05:00
parent d3e6e93d6a
commit 3b8093f8c7
1 changed files with 0 additions and 22 deletions

View File

@ -44,26 +44,4 @@ RSpec.describe Rex::ExtTime do
end
end
end
describe ".str_to_sec" do
it "returns seconds from encoded string" do
conversions.each do |k, v|
expect(subject.str_to_sec(v)).to eq(k)
end
end
context "when invalid encoded string" do
let(:invalid) { 'invalid' }
it "returns 0" do
expect(subject.str_to_sec(invalid)).to eq(0)
end
end
context "when incorrect pluralization" do
let(:invalid) { '1 years 1 days 2 hour 1 min 1 secs' }
it "returns correct number of seconds" do
expect(subject.str_to_sec(invalid)).to eq(31629661)
end
end
end
end