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:
parent
efd066c740
commit
f9b234e022
2 changed files with 6 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -37,7 +37,6 @@ unqiue
|
|||
upto
|
||||
varius
|
||||
vew
|
||||
vlaue
|
||||
wil
|
||||
wth
|
||||
yau
|
||||
|
|
Loading…
Reference in a new issue