Skip to content

Commit 54f2240

Browse files
committed
Fix render: file call
rails/rails#35688 deprecated calling `render file` and letting it lookup the file from anywhere. This was deprecated in 6.0 and removed in 6.1, which is why travis was failing for new PRs.
1 parent bf3d495 commit 54f2240

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
cache: bundler
22
rvm:
33
- 2.5.3
4-
- 2.6.1
4+
- 2.6.5
5+
- 2.7.0
56
- ruby-head
67
gemfile:
78
- gemfiles/Gemfile-rails-5-2

test/dummy/app/controllers/template_assertions_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def render_file_absolute_path
2020
end
2121

2222
def render_file_relative_path
23-
render file: 'test/dummy/README.rdoc'
23+
render file: '/test/dummy/README.rdoc'
2424
end
2525

2626
def render_with_layout

0 commit comments

Comments
 (0)