Skip to content
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

Mock method for AWS S3 post_object_hidden_fields #63

Merged
merged 2 commits into from
Mar 4, 2015
Merged

Mock method for AWS S3 post_object_hidden_fields #63

merged 2 commits into from
Mar 4, 2015

Conversation

roccogalluzzo
Copy link
Contributor

Hi,

post_object_hidden_fields doesn't make any external call, can be used as Mock method. Tell me if there a more elegant way to do this instead of copy & paste.

@geemus
Copy link
Member

geemus commented Mar 4, 2015

I think in other (similar) cases we have created a little module that has the method in this file. Then you can just "include" that module in to both real/mock and you don't have to copy paste. Does that make sense/work for you?

@roccogalluzzo
Copy link
Contributor Author

Yep,

I've just made in this manner. My only doubt is about the doc comment... it goes before the method declaration or inside the Real class?

@geemus
Copy link
Member

geemus commented Mar 4, 2015

Hmm. I guess with the definition probably...

@geemus
Copy link
Member

geemus commented Mar 4, 2015

Yeah, how you did it seems fine. Thanks!

geemus added a commit that referenced this pull request Mar 4, 2015
…ields

Mock method for AWS S3 post_object_hidden_fields
@geemus geemus merged commit 0d61c7d into fog:master Mar 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants