Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

64 wiersze
2.1KB

  1. module CryptCheck::Tls
  2. describe Method do
  3. describe '#==' do
  4. it 'must be equals to corresponding symbol' do
  5. method = Method[:TLSv1_2]
  6. expect(method == :SSLv2).to be false
  7. expect(method == :SSLv3).to be false
  8. expect(method == :TLSv1).to be false
  9. expect(method == :TLSv1_1).to be false
  10. expect(method == :TLSv1_2).to be true
  11. end
  12. it 'must be equals to corresponding method' do
  13. method = Method[:TLSv1_2]
  14. expect(method == Method[:SSLv2]).to be false
  15. expect(method == Method[:SSLv3]).to be false
  16. expect(method == Method[:TLSv1]).to be false
  17. expect(method == Method[:TLSv1_1]).to be false
  18. expect(method == Method[:TLSv1_2]).to be true
  19. end
  20. end
  21. # describe '#eql?' do
  22. # it 'must be equals to corresponding symbol' do
  23. # method = Method[:TLSv1_2]
  24. # expect(method.eql? :SSLv2).to be false
  25. # expect(method.eql? :SSLv3).to be false
  26. # expect(method.eql? :TLSv1).to be false
  27. # expect(method.eql? :TLSv1_1).to be false
  28. # expect(method.eql? :TLSv1_2).to be true
  29. # end
  30. #
  31. # it 'must be equals to corresponding method' do
  32. # method = Method[:TLSv1_2]
  33. # expect(method.eql? Method[:SSLv2]).to be false
  34. # expect(method.eql? Method[:SSLv3]).to be false
  35. # expect(method.eql? Method[:TLSv1]).to be false
  36. # expect(method.eql? Method[:TLSv1_1]).to be false
  37. # expect(method.eql? Method[:TLSv1_2]).to be true
  38. # end
  39. # end
  40. #
  41. # describe '#equal?' do
  42. # it 'must be equals to corresponding symbol' do
  43. # method = Method[:TLSv1_2]
  44. # expect(method.equal? :SSLv2).to be false
  45. # expect(method.equal? :SSLv3).to be false
  46. # expect(method.equal? :TLSv1).to be false
  47. # expect(method.equal? :TLSv1_1).to be false
  48. # expect(method.equal? :TLSv1_2).to be true
  49. # end
  50. #
  51. # it 'must be equals to corresponding method' do
  52. # method = Method[:TLSv1_2]
  53. # expect(method.equal? Method[:SSLv2]).to be false
  54. # expect(method.equal? Method[:SSLv3]).to be false
  55. # expect(method.equal? Method[:TLSv1]).to be false
  56. # expect(method.equal? Method[:TLSv1_1]).to be false
  57. # expect(method.equal? Method[:TLSv1_2]).to be true
  58. # end
  59. # end
  60. end
  61. end