Autofix Rubocop Rails/RootPathnameMethods (#23760)
parent
48aeab90f6
commit
8fd3fc404d
@ -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…
Reference in new issue