-
Notifications
You must be signed in to change notification settings - Fork 180
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
How to Properly Configure Test Environment? #239
Comments
Running into this issue with the Running the CarrierWave, CarrierWaveDirect, and Fog gems locally, I have isolated the problem to CarrierWaveDirect::Uploader lines 20-24:
It appears that CarrierWaveDirect's referencing The CarrierWave gem contains an
In the testing environment, it seems like the testing configuration is being overridden with the result of this eager_load method This eager_load method is ~3 years old (relatively new, at least in terms of our use of the gem). |
Discovered a workaround after watching the load sequence; it looked like Fog was initializing with credentials first out of the .env environment variables, and then being overridden with the credentials in the spec initializer. For some reason, the
|
This is what I have:
Seemed to be working fine, doing things like:
Until I added code like this:
Then I get:
Looking at the docs I see this but adding that results in the same WebMock error.
When I add it and remove the
file
settings above calls to:Fail with:
How can I configure this so that both styles of uploading are stored locally and do not result in network requests?
The text was updated successfully, but these errors were encountered: