Posts tagged Radiant

Jul25

Stubbing objects in Radiant

Radiant Rails Radiant Rails | comments

On a recent Radiant customization project, I needed to write some tests for a front-end extension. One situation called for a stub object, so I built out the pathing and created the stub object as I’m used to doing in Rails. In extensions/extension_name/test/mocks/test I created a some_mailer.rb object to mock a mailer model, overriding the mailer’s deliver_mail method:

Continue reading »

May03

Radiant extension gotcha

Radiant CMS Radiant CMS | comments


In my current work I am getting the opportunity to play with Radiant. It’s a fairly powerful, Rails-based Content Management Systeme (CMS).

I ran into a maddening problem. An extension that I had never checked in to Subversion was being deployed out to the production server, causing errors because expected database tables were not being found. When beginning the project, I had brought in the pageattachments extension](http://seancribbs.com/svn/rails/plugins/extensions/pageattachments/) thinking I needed it, and I ran some svn:externals stuff at that time so syncing with the remote source would be simple.

Continue reading »