This project is archived and is in readonly mode.
HttpMock not initialized in the Rails 2.3.2 GEM
-
Pat Nakajima
Try updating your
aws-s3gem. The most recent version is 0.6.2. -
Tom
I just updated my aws-s3 gem, but no joy:
ActiveResource::HttpMock NameError: uninitialized constant ActiveResource::HttpMock
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:440:in `load_missing_constant' from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:80:in `const_missing_not_from_s3_library' from /Library/Ruby/Gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:206:in `const_missing' from (irb):1Is there a reason the traceback is referencing the aws-s3 gem?
-
Tom
I went ahead and uninstalled the aws-s3 gem totally just to see if it made a difference. I get the same error though:
>> ActiveResource::HttpMock NameError: uninitialized constant ActiveResource::HttpMock from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:440:in `load_missing_constant' from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:80:in `const_missing' from (irb):1 -
Tom
Okay, so I need to add the line:
require 'active_resource/http_mock'That is probably just poorly documented and not a bug. Sorry!
-
Yehuda Katz (wycats)
- State changed from new to invalid