Skip to content

Commit fe2bdb4

Browse files
committed
Ensure file_fixture_path can be read by ActionDispatch::TestProcess
Adjust spacing of expectation
1 parent 0d920fe commit fe2bdb4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/rspec/rails/fixture_file_upload_support.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class RailsFixtureFileWrapper
2323

2424
class << self
2525
attr_accessor :fixture_path
26+
attr_reader :file_fixture_path
2627

2728
# Get instance of wrapper
2829
def instance

spec/rspec/rails/fixture_file_upload_support_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module RSpec::Rails
2727

2828
context 'ActionDispatch::TestProcess on Rails 6.1' do
2929
it 'can read the file_fixture_path attribute' do
30-
expect(FixtureFileUploadSupport::RailsFixtureFileWrapper).to respond_to(:file_fixture_path)
30+
expect(FixtureFileUploadSupport::RailsFixtureFileWrapper).to respond_to(:file_fixture_path)
3131
end
3232
end
3333

0 commit comments

Comments
 (0)