Forum: Ruby loading offline html files with mechanize

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
803ad415efcdcbf09b1addeb319650d7?d=identicon&s=25 Adam Akhtar (thegeezer3)
on 2009-03-23 12:43
this may be a dumb simple question yet ive googled and cant find out
what im doing wrong

in my unit tests i want to use offline html pages otherwise live pages
content will change and cause my tests to fail.

How do i do this

ive tried agent.get('my_filename.html')  and
agent.get_file('my_filename.html') but errors crop up. Ive checked the
ref docs but most classes have no write up yet (nice interface though!)
so im stuck. Can anyone help
This topic is locked and can not be replied to.