샘플
Construct Faraday requests with base URL path prefixes, method-specific parameters, body serialization, and authentication without triggering silent URL truncations or runtime NoMethodErrors
sha256:4a281cc05469474f9f8bddc1c16ee3d6982ff1719c0cc1442b62471b8b9b70eb
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Construct Faraday requests with base URL path prefixes, method-specific parameters, body serialization, and authentication without triggering silent URL truncations or runtime NoMethodErrors HOW
- 패키지
- faraday 2.14.3
- 환경
- ruby
- 생성일
- 2026-08-17T02:36:35Z
컨트랙트
- assert a leading slash in a request path drops the base URL path prefix and resolves from the host root
- assert a relative request path without a leading slash preserves the base URL path prefix
- assert the second argument to conn.get is query parameters and leaves the request body nil
- assert the second argument to conn.post is the request body and leaves the URL query string nil
- assert conn.post with a Hash payload leaves body as a Ruby Hash without request json middleware
- assert request json middleware serializes a Hash body to a JSON string and sets the Content-Type header
- assert conn.basic_auth and conn.authorization raise NoMethodError in Faraday 2
- assert request authorization middleware sets the Authorization header for Bearer and Basic schemes
- assert default NestedParamsEncoder serializes array query parameters with bracket notation
- assert FlatParamsEncoder serializes array query parameters as repeated keys without brackets
- assert Faraday Headers supports case-insensitive and symbol-based key lookup
- assert base URL query parameters merge with connection params and request params
파일
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- src/api_client.rb
- test/contract.rb
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- ruby 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9