Skip to content

Commit

Permalink
Ensure file_fixture_path can be read by ActionDispatch::TestProcess
Browse files Browse the repository at this point in the history
Adjust spacing of expectation
  • Loading branch information
sudara committed Sep 23, 2020
1 parent 0d920fe commit fe2bdb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/rspec/rails/fixture_file_upload_support.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class RailsFixtureFileWrapper

class << self
attr_accessor :fixture_path
attr_reader :file_fixture_path

# Get instance of wrapper
def instance
Expand Down
2 changes: 1 addition & 1 deletion spec/rspec/rails/fixture_file_upload_support_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module RSpec::Rails

context 'ActionDispatch::TestProcess on Rails 6.1' do
it 'can read the file_fixture_path attribute' do
expect(FixtureFileUploadSupport::RailsFixtureFileWrapper).to respond_to(:file_fixture_path)
expect(FixtureFileUploadSupport::RailsFixtureFileWrapper).to respond_to(:file_fixture_path)
end
end

Expand Down

0 comments on commit fe2bdb4

Please sign in to comment.