1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix misspelling of value is tests

This commit is contained in:
Petrik 2022-02-15 14:50:33 +01:00
parent efd066c740
commit f9b234e022
2 changed files with 6 additions and 7 deletions

View file

@ -77,9 +77,9 @@ class ParameterFilterTest < ActiveSupport::TestCase
test "filter_param" do
parameter_filter = ActiveSupport::ParameterFilter.new(["foo", /bar/])
assert_equal "[FILTERED]", parameter_filter.filter_param("food", "secret vlaue")
assert_equal "[FILTERED]", parameter_filter.filter_param("baz.foo", "secret vlaue")
assert_equal "[FILTERED]", parameter_filter.filter_param("barbar", "secret vlaue")
assert_equal "[FILTERED]", parameter_filter.filter_param("food", "secret value")
assert_equal "[FILTERED]", parameter_filter.filter_param("baz.foo", "secret value")
assert_equal "[FILTERED]", parameter_filter.filter_param("barbar", "secret value")
assert_equal "non secret value", parameter_filter.filter_param("baz", "non secret value")
end
@ -104,9 +104,9 @@ class ParameterFilterTest < ActiveSupport::TestCase
test "filter_param should return mask option when value is filtered" do
mask = Object.new.freeze
parameter_filter = ActiveSupport::ParameterFilter.new(["foo", /bar/], mask: mask)
assert_equal mask, parameter_filter.filter_param("food", "secret vlaue")
assert_equal mask, parameter_filter.filter_param("baz.foo", "secret vlaue")
assert_equal mask, parameter_filter.filter_param("barbar", "secret vlaue")
assert_equal mask, parameter_filter.filter_param("food", "secret value")
assert_equal mask, parameter_filter.filter_param("baz.foo", "secret value")
assert_equal mask, parameter_filter.filter_param("barbar", "secret value")
assert_equal "non secret value", parameter_filter.filter_param("baz", "non secret value")
end

View file

@ -37,7 +37,6 @@ unqiue
upto
varius
vew
vlaue
wil
wth
yau