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 Many thinks to all of the contributors who got us here! =================================================================### rspec-core-2.0.0.rc / 2010-10-05 [full changelog](http://github.com/rspec/rspec-core/compare/v2.0.0.beta.22...v2.0.0.rc) * 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 Lowell) * 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 Marston) * Fix before(:all) error handling so that it fails examples in nested groups, too (Myron Marston) =================================================================### rspec-expectations-2.0.0.rc / 2010-10-05 [full changelog](http://github.com/rspec/rspec-expectations/compare/v2.0.0.beta.22...v2.0.0.rc) * Enhancements * require ''rspec/expectations'' in a T::U or MiniUnit suite (Josep M. Bach) * Bug fixes * change by 0 passes/fails correctly (Len Smith) * Add description to satisfy matcher =================================================================### rspec-mocks-2.0.0.rc / 2010-10-05 [full changelog](http://github.com/rspec/rspec-mocks/compare/v2.0.0.beta.22...v2.0.0.rc) * Enhancements * support passing a block to an expecttation block (Nicolas Braem) * obj.should_receive(:msg) {|&block| ... } * Bug fixes * Fix YAML serialization of stub (Myron Marston) * Fix rdoc rake task (Hans de Graaff) =================================================================### rspec-rails-2.0.0.rc / 2010-10-05 [full changelog](http://github.com/rspec/rspec-rails/compare/v2.0.0.beta.22...v2.0.0.rc) * 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) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20101004/eb6cc706/attachment.html>
On Oct 4, 2010, at 11:47 PM, David Chelimsky 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/issuesIs 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20101005/2ca47fab/attachment.html>
On Oct 5, 2010, at 9:34 AM, Chuck Remes wrote:> > On Oct 4, 2010, at 11:47 PM, David Chelimsky 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?Not yet. If any of them reach out to me I''ll be glad to do what I can.> 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'' > endI''ll update the upgrade file. Thx.> > > 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 > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20101005/c2f61dc2/attachment-0001.html>
On Oct 5, 2010, at 10:59 AM, David Chelimsky wrote:> > On Oct 5, 2010, at 9:34 AM, Chuck Remes wrote: > >> >> On Oct 4, 2010, at 11:47 PM, David Chelimsky 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? > > Not yet. If any of them reach out to me I''ll be glad to do what I can. > >> 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 > > 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 :)> >> >> >> 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 >> >> _______________________________________________ >> rspec-users mailing list >> rspec-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20101005/3ec2196f/attachment.html>