[ANN] rspec-1.2 release candidate


#1

Hey fellow behaviour-drivers,

rspec-1.2 and rspec-rails-1.2 are just about ready, but I’d like to
get some feedback from the field before the release. Would the
adventurous among you kindly grab the latest github gems (1.1.99.7 as
of this email) and check 'em out? I’m hoping to release rspec-1.2
shortly after rails-2.3.1 is released.

[sudo] gem install dchelimsky-rspec
[sudo] gem install dchelimsky-rspec-rails

Notable changes include:

== rspec

  • lots and lots of refactoring - internals are getting cleaner and
    leaner
  • substantially works with ruby-1.9.1, though there are still some
    issues
  • cleaner integration with the new heckle 1.4.2 release
  • require ‘spec/test/unit’ to run your T::U tests w/ rspec and start
    refactoring them to code examples
  • require ‘spec/autorun’ to run examples with the ruby command

== rspec-rails

  • supports rails 2.0.5, 2.1.2, 2.2.2, 2.3.0, edge (as of release time)
  • config.gem actually works now
  • example groups are all subclasses of rails test classes (instead of
    just Test::Unit::TestCase or ActionController::TestCase)
  • spec_server fixes! - it pretty much works now for all supported
    versions of rails
  • bypass_rescue in controller specs for granular specification of action
    errors

You can see more complete release notes at:

http://github.com/dchelimsky/rspec/blob/master/History.txt
http://github.com/dchelimsky/rspec-rails/blob/master/History.txt

And upgrade notes for rspec-rails at:

http://github.com/dchelimsky/rspec-rails/blob/master/Upgrade.markdown

Cheers,
David


#2

On Thu, Feb 19, 2009 at 12:56 AM, David C. removed_email_address@domain.invalid
wrote:

Hey fellow behaviour-drivers,

rspec-1.2 and rspec-rails-1.2 are just about ready, but I’d like to
get some feedback from the field before the release. Would the
adventurous among you kindly grab the latest github gems (1.1.99.7 as
of this email) and check 'em out? I’m hoping to release rspec-1.2
shortly after rails-2.3.1 is released.

[sudo] gem install dchelimsky-rspec
[sudo] gem install dchelimsky-rspec-rails

FYI - documentation on upgrading your rails app:
http://wiki.github.com/dchelimsky/rspec/rails-with-rspec-gems

There are some gotchas that are explained there. Please feel free to
improve the wiki page if you come up with any steps or problems that I
missed.

Thanks,
David


#3

El 19/2/2009, a las 7:56, David C. removed_email_address@domain.invalid
escribió:

rspec-1.2 and rspec-rails-1.2 are just about ready, but I’d like to
get some feedback from the field before the release. Would the
adventurous among you kindly grab the latest github gems (1.1.99.7 as
of this email) and check 'em out? I’m hoping to release rspec-1.2
shortly after rails-2.3.1 is released.

[sudo] gem install dchelimsky-rspec
[sudo] gem install dchelimsky-rspec-rails

Or, if you don’t have gems.github.com in your RubyGems “source” list:

[sudo] gem install --source http://gems.github.com dchelimsky-rspec
[sudo] gem install --source http://gems.github.com dchelimsky-rspec-
rails

Wincent


#4

On Thu, Feb 19, 2009 at 3:57 AM, Wincent C. removed_email_address@domain.invalid
wrote:

Or, if you don’t have gems.github.com in your RubyGems “source” list:

[sudo] gem install --source http://gems.github.com dchelimsky-rspec
[sudo] gem install --source http://gems.github.com dchelimsky-rspec-rails

Thanks, Wincent! Forgot that little bit - I do have gems.github in
my RubyGems source list!

Cheers,
David


#5

On Fri, Feb 20, 2009 at 4:35 AM, Juanma C. removed_email_address@domain.invalid
wrote:

from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in
/usr/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/runner/example_group_runner.rb:15:in
from
/usr/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/runner/options.rb:94:in
run_examples' from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/runner/command_line.rb:9:inrun’
from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.12/bin/spec:4

Can you please submit a bug report?

Thanks,
David


#6

David,

I have an error when trying to run autospec.
It works when I run ‘rake spec’

I don know why it is still using the rspec-1.1.12 gem.

/usr/lib/ruby/gems/1.8/gems/dchelimsky-rspec-1.1.99.7/lib/spec/autorun.rb:3:
undefined method autorun' for Spec::Runner:Module (NoMethodError) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:ingem_original_require’
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in
require' from /home/jmcervera/.gem/ruby/1.8/gems/activesupport-2.3.0/lib/active_support/dependencies.rb:158:inrequire’
from ./spec/models/…/spec_helper.rb:5
from ./spec/models/cliente_spec.rb:1:in require' from ./spec/models/cliente_spec.rb:1 from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/runner/example_group_runner.rb:15:inload’
from
/usr/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/runner/example_group_runner.rb:15:in
load_files' from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/runner/example_group_runner.rb:14:ineach’
from
/usr/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/runner/example_group_runner.rb:14:in
load_files' from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/runner/options.rb:94:inrun_examples’
from
/usr/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/runner/command_line.rb:9:in
`run’
from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.12/bin/spec:4

Thanks
Juanma