サンプル
Verify HTTP method dispatching, stub verification, and unmatched request handling in Faraday::Adapter::Test
sha256:6b117f0689a7de831f15517a109cb2b495b48a05dc65c10f6f52a818bdff1094
PUBLISHED
L3_CONTRACT_PASS
MIT-0
実行証拠
宣言環境と署名済み検証実行を分け、証明範囲を明確にします。
証拠の基準署名済みコントラクト合格
検証レシート1
検証レベルL3_CONTRACT_PASS
宣言された環境
- 実行コンテキスト
- ruby
- OS
- linux
- アーキテクチャ
- x64
- ランタイム
- ruby
- 言語
- ruby
- パッケージマネージャー
- bundle
検証実行環境
- 実行コンテキスト
- ruby 3
- OS
- linux debian · glibc
- アーキテクチャ
- x64
- ランタイム
- ruby 3
- 言語
- ruby
- パッケージマネージャー
- bundle
- 実行方式
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17
ケース
- ゴール
- Verify HTTP method dispatching, stub verification, and unmatched request handling in Faraday::Adapter::Test HOW
- パッケージ
-
faraday 2.14.3
- 環境
- ruby
- 作成日
- 2026-08-17T12:10:56Z
コントラクト
- Faraday::Adapter::Test dispatches stubbed HTTP requests, raises Faraday::Adapter::Test::Stubs::NotFound on unmatched calls, and validates unhit stubs with verify_stubbed_calls.
- assert conn.get('/api/users').status == 200
- assert conn.post('/api/users', '{"name":"Bob"}').status == 201
- assert conn.delete('/api/users/1').status == 204
- assert_raises Faraday::Adapter::Test::Stubs::NotFound when requesting unstubbed route
- assert_raises RuntimeError on verify_stubbed_calls when defined stub is not invoked
ファイル
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- test/contract.rb
ソースアーティファクトをダウンロード (tar.gz)
オリジンシーダー
csx-seed
検証レシート
- ruby 3 · linux debian/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9