Skip to content

Commit

Permalink
Fixes issue with ActiveStorage::FixtureSet.blob erroring because Acti…
Browse files Browse the repository at this point in the history
…veStorage::FixtureSet.file_fixture_path is not set.
  • Loading branch information
jaywhy committed Apr 19, 2023
1 parent 4a1d800 commit 74c11f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/rspec/rails/file_fixture_support.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ module FileFixtureSupport

included do
self.file_fixture_path = RSpec.configuration.file_fixture_path
if defined? ActiveStorage::FixtureSet
ActiveStorage::FixtureSet.file_fixture_path = RSpec.configuration.file_fixture_path
end
end
end
end
Expand Down

0 comments on commit 74c11f9

Please sign in to comment.