Autofix Rubocop Rails/RootPathnameMethods (#23760)
parent
3e43bc352d
commit
eb6991cee1
@ -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