Skip to content

Commit

Permalink
Small spelling error
Browse files Browse the repository at this point in the history
existing_acrnoyms -> existing_acronyms
  • Loading branch information
lcpriest committed Jan 14, 2017
1 parent e15a23f commit cfcc825
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions actionpack/test/dispatch/request_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit cfcc825

Please sign in to comment.