[rspec-users] Cucumber features for RSS feeds

James Byrne lists at ruby-forum.com
Wed Apr 15 12:17:35 EDT 2009


Q. Is there anything special about the Rails test environment that would 
inhibit an ActivieResource object from connecting to an outside URL?

I am presently working inside the console with this expression:

>> forex = ForexCASource.find

and receiving a 404 error.

The resource is defined as:

class ForexCASource < ActiveResource::Base
  self.site         = 
'http://www.bankofcanada.ca/rss/fx/noon/fx-noon-all.xml'
end

I can reach the site url from a Firefox instance running on the same 
host using cut and paste so the url in the site assignment is valid.


-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list