test/test_helper.rb
def holdings_stub
    stub_request(:get, %r{/.*holdings.*/}).to_return(
      status: 200,
      body: File.read(Rails.root.join('test/fixtures/files/holdings_avail.xml')),
      headers: {}
    )
  end
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
Setup all fixtures in test/fixtures.yml for all tests in alphabetical order.
Setup all fixtures in test / fixtures . yml for all tests in alphabetical order .
def holdings_stub
    stub_request(:get, %r{/.*holdings.*/}).to_return(
      status: 200,
      body: File.read(Rails.root.join('test/fixtures/files/holdings_avail.xml')),
      headers: {}
    )
  end
def holdings_stub stub_request ( :get , %r{ /.*holdings.*/ } ) . to_return ( status : 200 , body : File . read ( Rails . root . join ( 'test/fixtures/files/holdings_avail.xml' ) ) , headers : { } ) end
Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
Setup all fixtures in test / fixtures / * . yml for all tests in alphabetical order .