diff options
| author | mo khan <mo.khan@gmail.com> | 2020-05-02 17:55:39 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-05-02 17:55:39 -0600 |
| commit | 96ffa5e41153352f788553c5792a4f117a3c5e6a (patch) | |
| tree | 24166d12eed17c2ab9d823eef6b8eb3ea2c136a7 /spec/unit/core | |
| parent | a892fb257eb26b9ff97c5bcdf9d807891aefe3d2 (diff) | |
Mark performance test as pending
Diffstat (limited to 'spec/unit/core')
| -rw-r--r-- | spec/unit/core/guess_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/unit/core/guess_spec.rb b/spec/unit/core/guess_spec.rb index 81054d2..750ac6e 100644 --- a/spec/unit/core/guess_spec.rb +++ b/spec/unit/core/guess_spec.rb @@ -50,6 +50,14 @@ RSpec.describe Spandx::Core::Guess do specify { expect(subject.license_for(content, algorithm: :dice_coefficient)&.id).to eql('MIT') } specify { expect(subject.license_for(content, algorithm: :levenshtein)&.id).to eql('MIT') } specify { expect(subject.license_for(content, algorithm: :jaro_winkler)&.id).to eql('MIT') } + + %i[dice_coefficient levenshtein jaro_winkler].each do |algorithm| + pending algorithm do + expect do + subject.license_for(content, algorithm: algorithm) + end.to perform_under(0.05).sample(10) + end + end end end end |
