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

Additional test cases for Files#can_download_as_zip #4019

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

ahmed-mgd
Copy link
Contributor

@ahmed-mgd ahmed-mgd commented Dec 16, 2024

Fixes #1195

These tests do not cover all cases yet, but I was looking to get feedback since I'm unfamiliar with stubbing.

@johrstrom
Copy link
Contributor

get feedback since I'm unfamiliar with stubbing.

Seems like you figured it out! Meta programming allows you to change behavior at runtime. That's what stubbing is doing, just redefining methods on instantiated objects (not redefining the class).

@ahmed-mgd ahmed-mgd marked this pull request as draft December 17, 2024 18:24
@ahmed-mgd ahmed-mgd marked this pull request as ready for review December 17, 2024 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add more test cases for Files#can_download_as_zip?
3 participants