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:

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.

3 Responses to “rspec-1.1.12 release candidate”

  1. Randy Says:

    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.

    <p>When running autotest, if all my tests pass, then I get the green dots, the results and growl pops up to confirm.  If any of my tests fail, however, I get the dots, the results, growl pops up in red, but then autotest exits with:
    

    ./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&#8217;: undefined methodkeys’ for nil:NilClass (NoMethodError)

    <p>rails 2.1.0 (have 2.2.2 installed as well)
    

    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)

    <p>Oh, and the first line after running autotest, before listing any of the tests it&#8217;s going to run, say&#8217;s:
    

    ./vendor/plugins/rspec/lib/autotest/rspec.rb:70: warning: instance variable @alt_separator not initialized

    <p>Any suggestions would be greatly appreciated and thank you for your time and work on rspec!</p>
    
  2. Randy Says:

    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

  3. David Chelimsky Says:

    Hey Randy – welcome aboard!

    <p>Would you mind posting the bug to http://rspec.lighthouseapp.com/projects/5645? I have some questions for you, but we&#8217;re all better served if that conversation happens in lighthouse.</p>
    
    
    <p>Thanks,
    

    David