ZenTest: March 2007 Archives

Sharing gems in multiruby

| | Comments (0)

Need to use multiruby with gems? Do what I do and share them with your existing gems:

% cd ~/.multiruby/install
% rm -rf */lib/ruby/gems  
% for DIR in */lib/ruby; do
> ln -s /usr/local/lib/ruby/gems $DIR/gems
> done

Then test with something easy like:

% multiruby -rubygems -e 'require "inline"'

Remember, use this method only when you aren't testing version dependent binary gems!!

autotest bindings

| | Comments (0)

I should add that I keep the previous autotest code in autotest.el and the following in my setup-modes.el (I have my emacs setup broken up):

(autoload 'autotest-switch "autotest" "doco" t)
(autoload 'autotest "autotest" "doco" t)
(add-hook 'ruby-mode-hook
          '(lambda ()
             (define-key ruby-mode-map (kbd "C-c C-a") 'autotest-switch))

This allows me to use C-c C-a to toggle back and forth between autotest and ruby files. I should also have it hooked in for grep buffers and other things, but I'll leave that as an exercise for the reader. :P

autotest for emacs

| | Comments (0)

I've been using this for a while now. It works pretty well for me, but I'm sure stuff could be ironed out and made a bit smoother/cleaner. Please provide any and all suggestions/patches as you see fit. This will be incorporated and eventually released with ZenTest once it feels good.

autotest.el behind the cut.

About this Archive

This page is a archive of entries in the ZenTest category from March 2007.

ZenTest: February 2007 is the previous archive.

ZenTest: April 2007 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Pages

Powered by Movable Type 4.1