aboutsummaryrefslogblamecommitdiffstats
path: root/activesupport/test/security_utils_test.rb
blob: 842bdd469d2f32968ac280e948633c1789451dad (plain) (tree)
1
2
3
4
5
6
7
8
9

                                       


                                                          

                                                                 

     
require "abstract_unit"
require "active_support/security_utils"

class SecurityUtilsTest < ActiveSupport::TestCase
  def test_secure_compare_should_perform_string_comparison
    assert ActiveSupport::SecurityUtils.secure_compare("a", "a")
    assert !ActiveSupport::SecurityUtils.secure_compare("a", "b")
  end
end