I am using the DBFunction plugin writen by Mark Van H.,
http://agilewebdevelopment.com/plugins/activerecord_database_functions
It works wonderfully but I’m having an issue with testing. My
development postgres database contains the necessary functions but they
are missing from my test database. I’ve got a sql file which adds the
functions to the db but something is removing them.
Here’s what I’m experiencing.
1 I run my sql file and add the functions.
2 Run an individual unit-test :Pass
3 Run all test :Fail - No function matches the given name. And when I
check the database the functions are indeed missing.
Any ideas?