Autofix Rubocop Rails/RootPathnameMethods (#23760)
This commit is contained in:
parent
48aeab90f6
commit
8fd3fc404d
8 changed files with 10 additions and 22 deletions
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
Fabricator(:site_upload) do
|
||||
file { File.open(File.join(Rails.root, 'spec', 'fabricators', 'assets', 'utah_teapot.png')) }
|
||||
file { Rails.root.join('spec', 'fabricators', 'assets', 'utah_teapot.png').open }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue