Testing Mechanize with Rspec
jkalef opened this issue · comments
Do you have any specific recommendations on how to create "mock" mechanize responses for RSPEC testing?
Check out Mechanize::TestCase - https://github.com/sparklemotion/mechanize/blob/master/lib/mechanize/test_case.rb
This line shows how you create a Mechanize::Page
from some arbitrary content.
Hope that helps
Thanks for your help. This is great!
Cheers,
Jared
On Mon, Nov 16, 2015 at 1:41 AM, Lee Jarvis notifications@github.com
wrote:
Check out Mechanize::TestCase -
https://github.com/sparklemotion/mechanize/blob/master/lib/mechanize/test_case.rbThis line
https://github.com/sparklemotion/mechanize/blob/master/lib/mechanize/test_case.rb#L68
shows how you create a Mechanize::Page from some arbitrary content.Hope that helps
—
Reply to this email directly or view it on GitHub
#453 (comment)
.