search for: load_work_data

Displaying 2 results from an estimated 2 matches for "load_work_data".

2006 Sep 18
2
Mocha + Selenium-on-rails loading problem ?
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: SalesConfigWor...
2006 Sep 15
0
Using Selenium with a mock-method on associated Model ???
...ill a "work table" that is read for the data on the page (SQL 2000). I have the call wrapped in a single-line method. During my functional test, I mock-disable the stored procedure call, as the "work table" is fillied via fixture. class Sales < ActiveRecord::Base def self.load_work_data puts "mock called sp_load_sales_work_table" end end I placed this same code into a .rsel partial and includePartial at the top of my .sel test. This works A-OK in the fixture. It apparently doesn''t work at all in the Selenium call. Where should this mock-class be locate...