diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-21 19:57:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-22 09:57:15 +0900 |
commit | 8fd3fc404dd848253767252bbd76275e091832b1 (patch) | |
tree | 05dac486f88021edebe5c27edc8466f1484e9114 /spec/rails_helper.rb | |
parent | 48aeab90f657055e5516b844f47fcf5c097458a1 (diff) |
Autofix Rubocop Rails/RootPathnameMethods (#23760)
Diffstat (limited to 'spec/rails_helper.rb')
-rw-r--r-- | spec/rails_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index faae02df0..70d3a968c 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -73,11 +73,11 @@ end RSpec::Matchers.define_negated_matcher :not_change, :change def request_fixture(name) - File.read(Rails.root.join('spec', 'fixtures', 'requests', name)) + Rails.root.join('spec', 'fixtures', 'requests', name).read end def attachment_fixture(name) - File.open(Rails.root.join('spec', 'fixtures', 'files', name)) + Rails.root.join('spec', 'fixtures', 'files', name).open end def stub_jsonld_contexts! |