aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/security_utils_test.rb
blob: 08d2e3baa6c63436ab45ed380755ce54eec7b91a (plain) (blame)
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