以下のようなソースは具体的に何をテストしてますか?
S3のObjectを取得することまではわかりましたが、
aroundとex.callのほうが何をしてるのかがよくわかりません。
around do |ex| stub = { list_objects: Aws::S3::Types::ListObjectsOutput.new(contents: []) } Aws.config[:s3] = { stub_responses: stub } ex.call Aws.config[:s3] = nil end
何か参考できる情報がありましたら教えていただけますか。
あなたの回答
tips
プレビュー