remove unused tests
parent
d3e6e93d6a
commit
3b8093f8c7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue