mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
commit
07307a7b9d
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue