Open moro opened 14 years ago
this is memo. too complecated to write in English, use mother tongue
モックですぐに例外をあげたくても、サーバ側は別スレッドで動くからむずい。 なので、テストを実行しているスレッドを何とかして取得しておいて、そのスレッド向けにThread#raiseすればいけるやもしれない。
そこまでやるニーズがあるかどうかは不明。
this is memo. too complecated to write in English, use mother tongue
モックですぐに例外をあげたくても、サーバ側は別スレッドで動くからむずい。 なので、テストを実行しているスレッドを何とかして取得しておいて、そのスレッド向けにThread#raiseすればいけるやもしれない。
そこまでやるニーズがあるかどうかは不明。