just getting into rspec, after reading The Rails Way by Obie Fernandez, a very nice testing framework.
after installing the gems and plugins I ran into this error when trying to run my tests "Your RSpec on Rails plugin is incompatible with your installed RSpec"
a simple workaround, run spec from your local script directory
this one raises the error, because it is running from the ruby gems?
spec spec/models
this one does not raise the error because it is running the locally installed version
from your rails application root
script/spec spec/models
or make the output pretty
script/spec spec/models -fs
the install was as follows
gem install rspec (sudo gem install rspec, on some OS)
script/plugin install svn://rubyforge.org/var/svn/rspec/trunk/rspec
script/plugin install svn://rubyforge.org/var/svn/rspec/trunk/rspec_on_rails
.
The blog has moved to http://jessehouse.com/ ... Many google searches point here so I am leaving it operational, but there will be no new posts.
Sunday, June 8, 2008
Tuesday, May 20, 2008
Ruby on Rails Chron Job
This is just for reference RunnerScript
One option for running scheduled processes for a rails application.
see also HowToRunBackgroundJobsInRails
One option for running scheduled processes for a rails application.
see also HowToRunBackgroundJobsInRails
Labels:
rails
Monday, May 19, 2008
Free Rice
FreeRice.com
Just came across this site - a good idea and a great cause

From their website - http://www.freerice.com/about.html
FreeRice has two goals:
1. Provide English vocabulary to everyone for free.
2. Help end world hunger by providing rice to hungry people for free.
This is made possible by the sponsors who advertise on this site.
Just came across this site - a good idea and a great cause
From their website - http://www.freerice.com/about.html
FreeRice has two goals:
1. Provide English vocabulary to everyone for free.
2. Help end world hunger by providing rice to hungry people for free.
This is made possible by the sponsors who advertise on this site.
Sunday, May 18, 2008
MSSQL drop and re-add constraints
One of the guys at work hooked me up with this code - quite useful if you want to do a bunch of data inserts but don't want to worry about the order you apply the inserts because of foreign key constraints
Before performing data actions:
After performing data actions:
Thanks to ET for this code bit!
Before performing data actions:
-- generate these and run SELECT 'ALTER TABLE ' + so.NAME + ' NOCHECK CONSTRAINT ALL' FROM sysobjects so WHERE xtype = 'u'
After performing data actions:
-- generate these and run SELECT 'ALTER TABLE ' + so.NAME + ' CHECK CONSTRAINT ALL' FROM sysobjects so WHERE xtype = 'u'
Thanks to ET for this code bit!
Wednesday, May 14, 2008
SnagIt promotional code (coupon) for $10 off
I have used SnagIt off and on over the past few years, usually with the trial version for a month here and there, finally broke down and got a license.
It runs $39.95 for single user - so I did a quick google search to see if any promotional codes were available and came across one - the promotional code SNUG will get you $10.00 off the standard price. The posting I found for this discount was from 2007 and it is now May 2008 so who knows how long it will be around?
SnagIt is a great tool - if you have never used it I recommend downloading the trial, best screen capture tool ever!
UPDATE 2009-01-07: the promo code SNUG expired on 2008-12-31, bummer; it was great while it lasted!
It runs $39.95 for single user - so I did a quick google search to see if any promotional codes were available and came across one - the promotional code SNUG will get you $10.00 off the standard price. The posting I found for this discount was from 2007 and it is now May 2008 so who knows how long it will be around?
SnagIt is a great tool - if you have never used it I recommend downloading the trial, best screen capture tool ever!
UPDATE 2009-01-07: the promo code SNUG expired on 2008-12-31, bummer; it was great while it lasted!
Saturday, May 10, 2008
Rolling Over Rails production.log file
Just came across this on a rails forum (post by Freezzo), rails production.log files can grow very large - but no chron job required - this is very handy.
where 'daily' can be 'daily' to 'weekly', 'monthly', '5mb', etc...
config.logger = Logger.new("#{RAILS_ROOT}/log/#{ENV['RAILS_ENV']}.log", 'daily')
where 'daily' can be 'daily' to 'weekly', 'monthly', '5mb', etc...
Labels:
rails
Subscribe to:
Posts (Atom)