Site Archives:
This Week in Edge Hobo
Posted by
Bryan Larsen | April 28, 2009 comments One Response

Here’s what’s been happening the last 3 weeks in Hobo.

Automated Tests

Unit tests have been updated, and integration tests have been added. More information is available in this post.

Rails 2.3 Support

Hobo finally supports Rails 2.3.  More information, and instructions on how to upgrade are available in this post

The Push for Hobo 1.0

As Tom mentioned we hope to get Hobo 1.0rc1 out soon.  The code is frozen, we’re only fixing bugs.  Please ensure you’ve entered any bugs you find in our Lighthouse so we don’t miss any. And if you have any changes of your own, please send patches or pull requests quickly.

Hobo –no-rails

The --no-rails option was added to the hobo command to make it available when hobo is run as a plugin.  See this recipe for more details on how to upgrade to a plugin

Bugs Fixed

Support for Rails 2.3
Posted by
Bryan Larsen | April 27, 2009 comments 13 Responses

Edge Hobo finally includes support for Rails 2.3.  Edge Hobo should continue to be backwards compatible with Rails 2.2.  This support is new, so please help us out by testing it on your application.

You can upgrade your application to use Rails 2.3 very simply:

    sudo gem install rails -v 2.3.2
    sed -i 's/2.2.2/2.3.2/g' config/environment.rb
    rake rails:update

Nested Model Forms

Rails 2.3 adds support for nested model forms.  Hobo has included support for nested model forms for quite some time now.  This has not been removed from Hobo, so you now have two mechanisms for nested model forms:

Hobo style:

    has_many :stories, :accessible => true, :dependent => :destory

Rails 2.3 style:

    has_many :stories, :dependent => :destory
    accepts_nested_attributes_for :tasks, :allow_destroy => true

After Hobo 1.0 is released we may decide to migrate Hobo over to the Rails 2.3 style nested models.  But Hobo 1.0 will support Rails 2.2 and therefore must include its own nested model support.

Automated Tests for Hobo
Posted by
Bryan Larsen | April 24, 2009 comments 4 Responses

I’ve been a sponsored member of the Hobo team for about 2 weeks now. One of my first acts was to fix bug 368.  In the process, I created Bug 400!  It’s a good thing that one of my focuses will be to increase the Hobo test coverage.

Unit Tests

Hobo has a set of unit tests and doctests.  I’ve updated these so that they all pass.  To run them:

    rake test_all

You may have to install/upgrade rubydoctest:

    gem sources -a http://gems.github.com
    sudo gem install bryanlarsen-rubydoctest

Integration Tests

I’ve created several integration tests for Hobo.  Integration tests live in Agility.

There are two different types of integration tests in Agility: Webrat and Selenium.

To run the webrat tests:

    rake test:integration

To run the selenium tests:

    vi config/selenium.yml  # edit appropriately
    script/server -e test -p 3001 &
    rake test:acceptance

Hobo 1.0 Nears
Posted by
Tom | April 22, 2009 comments 9 Responses

Things may have been quiet on the blog, but those who’ve been following the hobousers google group or keeping an eye on the github commits will know that the Hobo project is just as active as ever. In fact we have a couple of news items for y’all

First up, I’d like to give a big welcome to Bryan Larsen, who is now working on Hobo full time. Bryan made some excellent contributions entirely off his own back, and he happened to come to the end of a previous project at just the right time so we snapped him up. A big thanks too to our good sponsors at Barquin International for helping us to bring Bryan on to the team.

As requested on hobousers, we’re going to start putting out regular updates on the blog about the latest changes to the code; a sort of “This week in Edge Hobo”. Bryan will be helping out with these posts.

And the other little item of news is that we’ve started the push to Hobo 1.0. The feature set is frozen at this point, and we are working our way through bug fixes, improving the test coverage and docs. If you’ve got a pet bug that you want to see fixed in Hobo 1.0, make sure it’s ticketed.

Stay tuned!