Forum: RSpec [ANN] rspec-1.2 release candidate

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5d38ab152e1e3e219512a9859fcd93af?d=identicon&s=25 David Chelimsky (Guest)
on 2009-02-19 07:59
(Received via mailing list)
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/mast...

And upgrade notes for rspec-rails at:

http://github.com/dchelimsky/rspec-rails/blob/mast...

Cheers,
David
5d38ab152e1e3e219512a9859fcd93af?d=identicon&s=25 David Chelimsky (Guest)
on 2009-02-19 16:14
(Received via mailing list)
On Thu, Feb 19, 2009 at 12:56 AM, David Chelimsky <dchelimsky@gmail.com>
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...

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
Ef9ecd30591995af2cf62cde10b26e49?d=identicon&s=25 Wincent Colaiuta (Guest)
on 2009-02-20 04:29
(Received via mailing list)
El 19/2/2009, a las 7:56, David Chelimsky <dchelimsky@gmail.com>
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
5d38ab152e1e3e219512a9859fcd93af?d=identicon&s=25 David Chelimsky (Guest)
on 2009-02-20 08:06
(Received via mailing list)
On Thu, Feb 19, 2009 at 3:57 AM, Wincent Colaiuta <win@wincent.com>
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
F1e1789ff9e7fc3032fa6cf15382a1e8?d=identicon&s=25 Juanma Cervera (jmcervera)
on 2009-02-20 11:35
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:in
`gem_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:in
`require'
  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:in
`load'
  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:in
`each'
  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:in
`run_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
5d38ab152e1e3e219512a9859fcd93af?d=identicon&s=25 David Chelimsky (Guest)
on 2009-02-22 17:12
(Received via mailing list)
On Fri, Feb 20, 2009 at 4:35 AM, Juanma Cervera <lists@ruby-forum.com>
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:in
> `run'
>  from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.12/bin/spec:4

Can you please submit a bug report?

Thanks,
David
This topic is locked and can not be replied to.