-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stub response_target #2898
Comments
|
@mullermp that makes sense then. It looks like its handed by the Seahorse client. As a temp solution, I was able to have the file exist(file fixture) in my test suite so something like No, I am not using Rspec. |
Just curious, how are you testing if not with rspec? With mini test? You can also consider Tempfile somehow, but I'm not sure what your current test setup and logic looks like. |
Apologies. Yes, minitest. |
@mullermp Should I close this issue since its outside the scope of this gem? |
Yes. Thank you. Sorry that you ran into this, but I do believe mocking is correct for this feature. |
|
Describe the issue
I am trying to stub the
response_target
in theget_object
function call.I currently have this setup in my test suite
I get a
ArgumentError: unexpected value at params[:response_target]
I don't see any documentation on this.
If I remove the
response_target
key, it will try to create the file(which i don't want)Links
https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ClientStubs.html
The text was updated successfully, but these errors were encountered: