Automatically download the latest NetBeans releases

Posted on November 10, 2007
Here's what I use to grab the latest daily builds. You'll want to tweak it for directory names etc.
bld=`wget -q -O - 'http://deadlock.netbeans.org/hudson/job/ruby/lastSuccessfulBuild/buildNumber'`
wget -P /home/james/Desktop "http://deadlock.netbeans.org/hudson/job/ruby/lastSuccessfulBuild/artifact/ruby/rubyide/dist/netbeans-rubyide-hudson-$bld.zip"
cd /home/james/Desktop
rm -rf nbrubyide
unzip "netbeans-rubyide-hudson-$bld.zip"
newdir=nb$bld
mkdir $newdir
mv nbrubyide/* $newdir

406 errors when you're testing xml responses

Posted on November 05, 2007

Seeing errors that look something like this?

  1) Failure:
test_should_get_index(SoundCollectionsControllerTest) [C:/InstantRails/rails_apps/rfs/test/functional/sound_collections_controller_test.rb:18]: 
Expected response to be a <:success>, but was <406>

Make sure your test isn't specifying :xml:

get :index, :format => :xml  # BAD
get :index, :format => 'xml' # GOOD