TL;DR Myron Marston is taking over leadership of the RSpec project, and will be the lead maintainer of the rspec-core, rspec-expectations, and rspec-mocks gems. Andy Lindeman is taking over as lead maintainer of the rspec-rails gem. Myron Marston is RSpec’s new project lead Myron Marston has been contributing to RSpec since the ramp up to the 2.0 release in 2010, and joined the core team in…
rspec-2.12 is a minor release (per SemVer ), which includes numerous enhancements and bug fixes. It is fully backward compatible with previous rspec-2 releases and is a recommended upgrade for all users. Thanks to all who contributed. Special thanks to Myron Marston and Andy Lindeman for their personal contributions to the code as well as a great job shepherding pull requests from several new…
I’m excited to be presenting on Behavior-Driven Objects at the Agile Testing & BDD eXchange in NYC on Monday, October 1st (details below). From the conference website : One of the original ideas behind BDD was that testing should be about behavior at all levels. Effectively, all automated tests can be viewed as “functional tests” of entry points, be they user facing or internal,…
rspec-2.11.0 is out and filled with a bunch of new features. Big thanks to all who contributed, especially Justin Ko , Andy Lindeman (the newest addition to the RSpec core team) and Myron Marston for their great job addressing issues and shepherding pull requests. Thanks also to Myron for all his work on two great new features: the new expectation syntax and support for stubbing constants .…
TL;DR Explicit use of the “subject” abstraction is a code smell, and should be refactored to use a more intention revealing name whenever possible. One liners rspec-core supports a one-liner syntax to reduce the noise of common requirements like validations: article_spec.rb 1 2 3 describe Article do it { should validate_presence_of ( :title ) } end Without support for this syntax, the…
These are patch releases recommended for anybody who has already upgraded to 2.10. rspec-mocks-2.10.1 full changelog Bug fixes fix regression of edge case behavior fixed failure of object.should_receive(:message).at_least(0).times.and_return value fixed failure of object.should_not_receive(:message).and_return value rspec-rails-2.10.1 full changelog Bug fixes fix regression introduced in 2.10.0…
This is a bug-fix only release, and is recommended for everybody using rspec-2.9. full changelog Bug fixes Provide a helpful message if the diff between two objects is empty. Fix bug diffing single strings with multiline strings. Fix for error with using custom matchers inside other custom matchers (mirasrael) Fix using execution context methods in nested DSL matchers (mirasrael)
rspec-2.9.0 is released wtih lots of bug fixes and a few minor feature improvements as well. Enjoy! rspec-core-2.9.0 / 2012-03-17 full changelog Enhancements Support for “X minutes X seconds” spec run duration in formatter. (uzzz) Strip whitespace from group and example names in doc formatter. Removed spork-0.9 shim. If you’re using spork-0.8.x, you’ll need to upgrade to…
TL;DR: TDD is about specifying behavior, not structure. Validations are behavior, and should be specified. Associations are structure, and need not be. Disclaimer This is my personal viewpoint, though it is not mine alone. YMMV. Declarations ActiveRecord provides a declarative interface for describing the structure and behavior of a model: article.rb 1 2 3 4 class Article < ActiveRecord : :Base…
Bug fix release The rails-3.2.0.rc2 release broke stub_model in rspec-rails-2.0.0 > 2.8.0. The rspec-rails-2.8.1 release fixes this issue, but it means that when you upgrade to rails-3.2.0.rc2 or greater, you’ll have to upgrade to rspec-rails-2.8.1 or greater. Because rspec-rails-2.8.1 supports all versions of rails since 3.0, I recommend that you upgrade to rspec-rails-2.8.1 first, and then…
We released RSpec-2.8.0 today with a host of new features and improvements since 2.7. Some of the highlights are described below, but you can see the full changelogs at: http://rubydoc.info/gems/rspec-core/file/Changelog.md http://rubydoc.info/gems/rspec-expectations/file/Changelog.md http://rubydoc.info/gems/rspec-mocks/file/Changelog.md http://rubydoc.info/gems/rspec-rails/file/Changelog.md…
I just released rspec-2.8.0.rc1, which includes releases of rspec-core, rspec-expectations, rspec-mocks, and rspec-rails. Changelogs for each are at: rspec-core rspec-expectations rspec-mocks rspec-rails What’s new Nothing really changed in rspec-rails or rspec-mocks, but rspec-core and rspec-expectations have both gotten some nice improvements. Configuration (rspec-core) rspec-core offers a…
We’re pleased to announce the release of rspec-2.7.0. Release notes for each gem are listed below, but here are a couple of highlights: Just type rspec With the the 2.7.0 release, if you keep all of your specs in the conventional spec directory, you don’t need to follow the rspec command with a path. Just type rspec . If you keep your specs in a different directory, just set the…
In a github issue reported to the rspec-mocks project, the user had run into a problem in a Rails controller spec in which an RSpec-generated test double didn’t behave as expected. What follows is an edited version of the issue and my response, with the hope that it reaches a wider audience and/or sparks some conversation. The reported problem:…
Bundler serves two primary purposes: it helps you to install the correct gem versions it constrains the load path to the correct gem versions at runtime Assuming you’re using Bundler to constrain your runtime environment (which you are if you’re using Rails 3 defaults), then you are likely prefixing most shell commands with bundle exec . We interrupt this post for an important update:…
full changelog Bug fixes Support exclusion filters in DRb. (Yann Lugrin) Fix —example escaping when run over DRb. (Elliot Winkler) Use standard ANSI codes for color formatting so colors work in a wider set of color schemes.
There’s been some confusion surrounding the rake-0.9.0 release, and I’d like to take the opportunity to clarify some things and hopefully draw attention to gem versioning policies and their implications for everybody in the Ruby community. First, there are three distinct issues related to the rake release: 1. Backward-incompatibility Rake 0.9 includes backward-incompatible changes. Per…
This is a bug fix release that is compatible with the rails-3.0.0 to 3.0.7, 3.0.8.rc1, and 3.1.0.rc1 (it is mostly, but not fully compatible with but not rails-3.1.0.beta1). rspec-rails-2.6.1 / 2011-05-25 full changelog Bug fixes fix controller specs with anonymous controllers with around filters exclude spec directory from rcov metrics (Rodrigo Navarro) guard against calling prerequisites on nil…