Hello everyone, I am trying to write a dm-<database>-adapter for a new database called OpenEdge. I've already written an adapter for DataObjects that is essentially finished here<https://github.com/abevoelker/do/tree/add-openedge-adapter/do_openedge> (barring any need for fresh downstream hacks related to this dm-openedge-adapter). I've started working on the dm-openedge-adapter component, based on cloning dm-oracle-adapter as I will need a similar :sequence option for Serial properties.
My first question is probably kind of dumb, but what is the best way for simply running the tests? I am currently doing DM_DB_USER=<user> DM_DB_PASSWORD=<pass> DM_DB_HOST=<host:port> rake spec but am continually getting the error +@adapter+ should be defined in before block without a stack trace. For now I've also had to hack dm-core to spec/setup.rb *default_storage_name* method to return a hardcoded test database name because this crappy database doesn't support database names > 11 characters. Also, for now, I'm also trying to work off of the 1.2.0 versions of DM gems just to get basic functionality working, then I plan on jumping onto the beta 1.3.0 or whatever is most current afterwards. Also, are there other repos that I should expect to modify outside of the dm-openedge-adapter that I am creating? Must I modify dm-migrations logic, or can I skip that for now just to get basic functionality working without migrations support? I know I've also seen some custom instance variables set in dm-do-adapter<https://github.com/datamapper/dm-do-adapter/blob/master/lib/dm-do-adapter/spec/shared_spec.rb#L21> for specific database adapters as well... I suppose I shall have to modify that to get the specs set up right for this adapter. I don't mind working my way through the code to try and figure this out, but was hoping that someone else with some experience in the area could give me some pointers (if there are any) just to help me get started. dm-core and friends is a bit more to wade through than the DataObjects stuff. Thanks! Abe -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.
