[mocha-developer] Mocha + Selenium-on-rails loading problem ?
Peter Fitzgibbons
peter.fitzgibbons at gmail.com
Mon Sep 18 12:53:47 EDT 2006
Hello All,
I need to stub two class methods before a selenium call.
The .rsel is :
require 'mocha'
SalesConfigWork.stubs(:load_work_data)
SalesConfigWork.stubs(:delete_work_data)
setup :fixtures => :sales_config_works
open "/"
The Selenium test runner result is :
undefined method `stubs' for SalesConfigWork:Class
Extracted source (around line *#0*):
1: require 'mocha'
2:
3: SalesConfigWork.stubs(:load_work_data)
RAILS_ROOT: ./script/../config/..
I understand this might be a stretch to ask; what do you think is happening
here ?
Thanks for your time!
--
------------------------------
Apple MacBook. Black. It's the new White!
------------------------------
Peter Fitzgibbons
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mocha-developer/attachments/20060918/a038d678/attachment.html
More information about the mocha-developer
mailing list