Rspec-2.0.0.rc is released

rspec-2.0.0.rc is released!

See http://blog.davidchelimsky.net/2010/07/01/rspec-2-documentation/ for
links to all sorts of documentation on rspec-2.

Plan is to release rspec-2.0.0 (final) within the next week, so please
install, upgrade, etc, and report issues to:




Many thinks to all of the contributors who got us here!

==================================================================

rspec-core-2.0.0.rc / 2010-10-05

full
changelog

  • Enhancements

    • implicitly require unknown formatters so you don’t have to require
      the
      file explicitly on the commmand line (Michael Grosser)
    • add --out/-o option to assign output target
    • added fail_fast configuration option to abort on first failure
    • support a Hash subject (its([:key]) { should == value }) (Josep M.
      Bach)
  • Bug fixes

    • Explicitly require rspec version to fix broken rdoc task (Hans de
      Graaff)
    • Ignore backtrace lines that come from other languages, like Java or
      Javascript (Charles L.ll)
    • Rake task now does what is expected when setting (or not setting)
      fail_on_error and verbose
    • Fix bug in which before/after(:all) hooks were running on excluded
      nested
      groups (Myron M.)
    • Fix before(:all) error handling so that it fails examples in nested
      groups,
      too (Myron M.)
      ==================================================================

rspec-expectations-2.0.0.rc / 2010-10-05

full
changelog

  • Enhancements

    • require ‘rspec/expectations’ in a T::U or MiniUnit suite (Josep M.
      Bach)
  • Bug fixes

    • change by 0 passes/fails correctly (Len S.)
    • Add description to satisfy matcher
      ==================================================================

rspec-mocks-2.0.0.rc / 2010-10-05

full
changelog

  • Enhancements

    • support passing a block to an expecttation block (Nicolas Braem)
      • obj.should_receive(:msg) {|&block| … }
  • Bug fixes

    • Fix YAML serialization of stub (Myron M.)
    • Fix rdoc rake task (Hans de Graaff)
      ==================================================================

rspec-rails-2.0.0.rc / 2010-10-05

full
changelog

  • Enhancements
    • add --webrat-matchers flag to scaffold generator (for view specs)
    • separate ActiveModel and ActiveRecord APIs in mock_model and
      stub_model
    • ControllerExampleGroup uses controller as the implicit subject by
      default (Paul Rosania)

On Oct 4, 2010, at 11:47 PM, David C. wrote:

rspec-2.0.0.rc is released!

See http://blog.davidchelimsky.net/2010/07/01/rspec-2-documentation/ for links to all sorts of documentation on rspec-2.

Plan is to release rspec-2.0.0 (final) within the next week, so please install, upgrade, etc, and report issues to:

http://github.com/rspec/rspec-core/issues
http://github.com/rspec/rspec-expectations/issues
http://github.com/rspec/rspec-mocks/issues
http://github.com/rspec/rspec-rails/issues

Is there any coordination with the authors of jeweler, bones, etc. so
that the Rake files those tools generate can be updated to rspec2
compatibility?

Speaking of which, the Upgrade.markdown didn’t include enough
information to get my existing Rakefile (created by bones) working. I’m
including the changes I had to make in this email so other folks
searching the ML will find it.

Original:

require ‘spec/rake/spectask’

Spec::Rake::SpecTask.new do |t|
t.spec_opts = [’–options’, ““spec/spec.opts””]
t.spec_files = FileList[‘spec/**/*.rb’]
end

For rspec2 compatibility:

require ‘rspec/core/rake_task’

RSpec::Core::RakeTask.new do |t|
t.rspec_opts = ["-c", “-f progress”, “-r ./spec/spec_helper.rb”]
t.pattern = ‘spec/**/*_spec.rb’
end

Also, as mentioned in the Upgrade.markdown file, I had to modify my
spec_helper.rb to use Rspec.configure instead of the original
Spec::Runner.configure syntax.

cr

On Oct 5, 2010, at 9:34 AM, Chuck R. wrote:

http://github.com/rspec/rspec-expectations/issues
http://github.com/rspec/rspec-mocks/issues
http://github.com/rspec/rspec-rails/issues

Is there any coordination with the authors of jeweler, bones, etc. so that the Rake files those tools generate can be updated to rspec2 compatibility?

Not yet. If any of them reach out to me I’ll be glad to do what I can.

For rspec2 compatibility:

require ‘rspec/core/rake_task’

RSpec::Core::RakeTask.new do |t|
t.rspec_opts = ["-c", “-f progress”, “-r ./spec/spec_helper.rb”]
t.pattern = ‘spec/**/*_spec.rb’
end

I’ll update the upgrade file. Thx.

On Oct 5, 2010, at 10:59 AM, David C. wrote:

Plan is to release rspec-2.0.0 (final) within the next week, so please install, upgrade, etc, and report issues to:

I’ll update the upgrade file. Thx.
I added an issue to track this:
http://github.com/rspec/rspec-core/issues/issue/173. Please feel free to
submit a patch :slight_smile:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs