rspec-1.1.12 release candidate
January 4th, 2009
I’m getting ready to do a 1.1.12 release of rspec and rspec-rails. Given the history of release-related compatibility problems, I offer you release candidate gems, which you can acquire thusly:
UPDATE: new version (1.1.11.6) fixes dependency problem w/ github gems
gem sources --add http://gems.github.com
[sudo] gem install dchelimsky-rspec -v 1.1.11.6
[sudo] gem install dchelimsky-rspec-rails -v 1.1.11.6
Release notes can be seen under Maintenance at:
- http://github.com/dchelimsky/rspec/tree/master/History.txt
- http://github.com/dchelimsky/rspec-rails/tree/master/History.txt
NOTE: This will be the last release of rspec-rails that supports rails < 2.0
If you are so inclined, please grab these gems, use them, and let me know if there are any problems.


January 4th, 2009 at 4:53 pm
I have gone through the first few PeepCode screencasts on rspec with success, but never really dove head on into BDD. Now that I am required to use it at work, I am running into errors (figures). I don’t know if it’s this latest 1.1.12 or not, but the issues I’m experiencing center around the autotest code in the rspec/lib/autotest/rspec.rb file.
./vendor/plugins/rspec/lib/autotest/rspec.rb:45: warning: instance variable @files not initialized ./vendor/plugins/rspec/lib/autotest/rspec.rb:45:in
consolidate_failures’: undefined methodkeys’ for nil:NilClass (NoMethodError)rspec 1.1.12 (also 1.1.11, 1.1.4, 1.1.3, 1.1.2) rspec-rails 1.1.12 (also 1.1.11) ZenTest 3.11.0 (also 3.10.0, 3.9.2, 3.9.1, 3.8.0)
./vendor/plugins/rspec/lib/autotest/rspec.rb:70: warning: instance variable @alt_separator not initialized
January 4th, 2009 at 4:53 pm
Forgot to post my .autotest file:
-- ruby --
require 'autotest/growl'
require 'autotest/html_report'
require 'autotest/kdenotify'
require 'autotest/menu'
require 'autotest/pretty'
require 'autotest/redgreen'
require 'autotest/snarl'
require 'autotest/timestamp'
tip from http://wincent.com/knowledge-base/Setting_up_autotest_to_use_Growl
module Autotest::Growl
def self.growl title, msg, img, pri=0, sticky="" system "growlnotify -n autotest --image #{img} -p #{pri} -m #{msg.inspect} #{title} #{sticky}" end
Autotest.add_hook :ran_command do |at| image_root = "~/.autotest_images" results = [at.results].flatten.join("\n") output = results.slice(/(\d+)\s+examples?,\s(\d+)\s+failures?(,\s(\d+)\s+pending)?/) if output if $~[2].to_i > 0 growl "Test Results: Fail", "#{output}", "#{image_root}/rails_fail.png", 2 else growl "Test Results: Pass", "#{output}", "#{image_root}/rails_ok.png" end end end
end
January 4th, 2009 at 4:53 pm
Hey Randy – welcome aboard!
David