Skip to content

Commit 409fa29

Browse files
authored
Merge pull request rails#51611 from nnc/patch-1
Fix typo in page_dump_helper.rb
2 parents 4d1f4ed + 8ba3144 commit 409fa29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

actionpack/lib/action_dispatch/testing/test_helpers/page_dump_helper.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ class InvalidResponse < StandardError; end
77

88
# Saves the content of response body to a file and tries to open it in your browser.
99
# Launchy must be present in your Gemfile for the page to open automatically.
10-
def save_and_open_page(path = html_dump_defaul_path)
10+
def save_and_open_page(path = html_dump_default_path)
1111
save_page(path).tap { |s_path| open_file(s_path) }
1212
end
1313

1414
private
15-
def save_page(path = html_dump_defaul_path)
15+
def save_page(path = html_dump_default_path)
1616
raise InvalidResponse.new("Response is a redirection!") if response.redirection?
1717
path = Pathname.new(path)
1818
path.dirname.mkpath
@@ -27,7 +27,7 @@ def open_file(path)
2727
warn "File saved to #{path}.\nPlease install the launchy gem to open the file automatically."
2828
end
2929

30-
def html_dump_defaul_path
30+
def html_dump_default_path
3131
Rails.root.join("tmp/html_dump", "#{method_name}_#{DateTime.current.to_i}.html").to_s
3232
end
3333
end

0 commit comments

Comments
 (0)