File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
actionpack/lib/action_dispatch/testing/test_helpers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ class InvalidResponse < StandardError; end
7
7
8
8
# Saves the content of response body to a file and tries to open it in your browser.
9
9
# 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 )
11
11
save_page ( path ) . tap { |s_path | open_file ( s_path ) }
12
12
end
13
13
14
14
private
15
- def save_page ( path = html_dump_defaul_path )
15
+ def save_page ( path = html_dump_default_path )
16
16
raise InvalidResponse . new ( "Response is a redirection!" ) if response . redirection?
17
17
path = Pathname . new ( path )
18
18
path . dirname . mkpath
@@ -27,7 +27,7 @@ def open_file(path)
27
27
warn "File saved to #{ path } .\n Please install the launchy gem to open the file automatically."
28
28
end
29
29
30
- def html_dump_defaul_path
30
+ def html_dump_default_path
31
31
Rails . root . join ( "tmp/html_dump" , "#{ method_name } _#{ DateTime . current . to_i } .html" ) . to_s
32
32
end
33
33
end
You can’t perform that action at this time.
0 commit comments