Displaying 1 result from an estimated 1 matches for "sp_load_sales_work_table".
2006 Sep 15
0
Using Selenium with a mock-method on associated Model ???
...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 located? And/or when should I call it
for use with a Selen...