提交 07307a7b 编写于 作者: A Arthur Nogueira Neves 提交者: GitHub

Merge pull request #27679 from lcpriest/patch-1

Small spelling error
......@@ -760,8 +760,8 @@ class RequestMethod < BaseRequestTest
end
test "post uneffected by local inflections" do
existing_acrnoyms = ActiveSupport::Inflector.inflections.acronyms.dup
existing_acrnoym_regex = ActiveSupport::Inflector.inflections.acronym_regex.dup
existing_acronyms = ActiveSupport::Inflector.inflections.acronyms.dup
existing_acronym_regex = ActiveSupport::Inflector.inflections.acronym_regex.dup
begin
ActiveSupport::Inflector.inflections do |inflect|
inflect.acronym "POS"
......@@ -774,8 +774,8 @@ class RequestMethod < BaseRequestTest
ensure
# Reset original acronym set
ActiveSupport::Inflector.inflections do |inflect|
inflect.send(:instance_variable_set, "@acronyms", existing_acrnoyms)
inflect.send(:instance_variable_set, "@acronym_regex", existing_acrnoym_regex)
inflect.send(:instance_variable_set, "@acronyms", existing_acronyms)
inflect.send(:instance_variable_set, "@acronym_regex", existing_acronym_regex)
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册