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

Merge pull request #27679 from lcpriest/patch-1

Small spelling error
This commit is contained in:
Arthur Nogueira Neves 2017-01-13 23:25:39 -05:00 committed by GitHub
commit 07307a7b9d

View file

@ -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