shatorkin@gmail.com
5/18/2007 11:48:00 AM
I make work rspec with oracle.
I have a spec what contains Model.find(1) cause (record with id=1
exists in the table).
Model.find(:first) works well
Spec uses method "instance_eval" where name of ruby file and row
number are passed as parameter.
When script invokes "describe" method of OCI8 Class
(oracle_adapter.rb) it is failed with error message "block not
supplied".
When I added an alias: "alias_method :my_describe,:describe" and
called 'my_describe' instead of 'describe' spec did work well.
Whose is this bug - ruby,spec, or oracle_adapter I have not known
yet :).