* autotest/rspec uses ruby command instead of spec command (no need for spec command unless loading directories)
* Avoid 'invalid option -O' in autotest (patch from Jonathan del Strother). Closes #486.
* Fix: Unimplemented step with new line throws error (patch from Ben Mabey). Closes #494.
* Only use color codes on tty; override for autospec (patch from Tim Pope). Closes #413.
* Warn when setting mock expectations on nil (patch from Ben Mabey). Closes #521.
* Support argument constraints as values in the hash_including contstraint. Thanks to Pirkka Hartikainen for failing code examples and the fix. Buttons up #501.
* mock(:null_object=>true) plays nice with HTML (patch from Gerrit Kaiser)
* Consider MinGW as valid RUBY_PLATFORM for --colour option. (patch from Luis Lavena). Closes #406.
* Add 2nd arg to respond_to? to align w/ core Ruby rdoc: http://www.ruby-doc.org/core/classes/Object.html#M000604
* quiet backtrace tweaker filters individual lines out of multiline (ala Rails) error messages (Pat Maddox)
* added ability to stub multiple methods in one stub! call (Pat Maddox)
* story progress bar formatter and more colourful summaries from the plain text story formatter (Joseph Wilk)
* Avoid ruby invocation errors when autotesting (Jonathan del Strother)
* added mock('foo').as_null_object
* add file and line number to pending_example for formatters (Scott Taylor)
* return last stubbed value for mock expectation with no explicit return (Pat Maddox)
* Fixed bug when should_receive(:foo).any_number_of_times is called after similar stub (Pat Maddox)
* Warning messages now issued when expectations are set on nil (Ben Mabey)
The "tell me a story and go nest yourself" release.
* Applied patch from Mike Vincent to handle generators rails > 2.0.1. Closes LH[#181]
* Formatter.pending signature changed so it gets passed an ExampleGroup instance instead of the name ( LH[#180])
* Fixed LH[#180] Spec::Rails::Example::ModelExampleGroup and friends show up in rspec/rails output
* Spec::Rails no longer loads ActiveRecord extensions if it's disabled in config/boot.rb
* Applied LH[#178] small annoyances running specs with warnings enabled (Patch from Mikko Lehtonen)
* Tighter integration with Rails fixtures. Take advantage of fixture caching to get performance improvements (Thanks to Pat Maddox, Nick Kallen, Jonathan Barnes, and Curtis)
Textmate Bundle users - this release adds a new RSpec bundle that highlights describe, it, before and after and
provides navigation to descriptions and examples (rather than classes and methods). When you first install this,
it is going to try to hijack all of your .rb files. All you need to do is open a .rb file that does not end with
'spec.rb' and change the bundle selection from RSpec to Ruby. TextMate will do the right thing from then on.
Shortcuts for tab-activated snippets all follow the TextMate convention of 2 or 3 letters of the first word, followed by the first letter of each subsequent word. So "should have_at_least" would be triggered by shhal.
We reduced the scope for running spec directories, files, a single file or individual spec in TextMate to source.ruby.rspec. This allowed us to restore the standard Ruby shortcuts:
CMD-R runs all the specs in one file
CMD-SHIFT-R runs an individual spec
CMD-OPT-R runs any files or directories selected in the TextMate drawer
rspec_on_rails users - don't forget to run script/generate rspec
* Added shared_examples_for method, which you can (should) use instead of describe Foo, :shared => true
* Applied LH[#168] Fix describe Object, "description contains a # in it" (Patch from Martin Emde)
* Applied LH[#15] Reverse loading of ActionView::Base helper modules (Patch from Mark Van Holstyn)
* Applied LH[#149] Update contribute page to point towards lighthouse (Patch from Josh Knowles)
* Applied LH[#142] verify_rcov fails with latest rcov (Patch from Kyle Hargraves)
* Applied LH[#10] Allow stubs to yield and return values (Patch from Pat Maddox)
* Fixed LH[#139] version.rb in trunk missing svn last changed number
* Applied LH[#14] Adding support for by_at_least/by_at_most in Change matcher (Patch from Saimon Moore)
* Applied LH[#12] Fix for TM when switching to alternate file (Patch from Trevor Squires)
* Applied LH[#133] ExampleMatcher should match against before(:all) (Patch from Bob Cotton)
* Applied LH[#134] Only load spec inside spec_helper.rb (Patch from Mark Van Holstyn)
* RSpec now bails immediately if there are examples with identical names.
* Applied LH[#132] Plain Text stories should support Given and Given: (Patch from Jarkko Laine)
* Applied patch from Pat Maddox: Story Mediator - the glue that binds the plain text story parser with the rest of the system
* Applied LH[#16] Have SimpleMatchers expose their description for specdocs (Patch from Bryan Helmkamp)
* Stories now support --colour
* Changed the DSL modules to Example (i.e. Spec::Example instead of Spec::DSL)
* Applied [#15608] Story problem if parenthesis used in Given, When, Then or And (Patch from Sinclair Bain)
* Applied [#15659] GivenScenario fails when it is a RailsStory (Patch from Nathan Sutton)
* Fixed [#15639] rcov exclusion configuration. (Spec::Rails projects can configure rcov with spec/rcov.opts)
* The rdoc formatter (--format rdoc) is gone. It was buggy and noone was using it.
* Changed Spec::DSL::Behaviour to Spec::DSL::ExampleGroup
* Changed Spec::DSL::SharedBehaviour to Spec::DSL::SharedExampleGroup
* Applied [#14023] Small optimization for heavily proxied objects. (Patch from Ian Leitch)
* Applied [#13943] ProfileFormatter (Top 10 slowest examples) (Patch from Ian Leitch)
* Fixed [#15232] heckle is not working correctly in trunk (as of r2801)
* Applied [#14399] Show pending reasons in HTML report (Patch from Bryan Helmkamp)
* Discovered fixed: [#10263] mock "leak" when setting an expectation in a block passed to mock#should_receive
* Fixed [#14671] Spec::DSL::ExampleRunner gives "NO NAME because of --dry-run" for every example for 'rake spec:doc'
* Fixed [#14543] rspec_scaffold broken with Rails 2.0
* Removed Patch [#10577] Rails with Oracle breaks 0.9.2 - was no longer necessary since we moved describe to the Main object (instead of Object)
* Fixed [#14527] specs run twice on rails 1.2.4 and rspec/rspec_on_rails trunk
* Applied [#14043] Change output ordering to show pending before errors (Patch from Mike Mangino)
* Applied [#14095] Don't have ./script/generate rspec create previous_failures.txt (Patch from Bryan Helmkamp)
* Applied [#14254] Improved error handling for Object#should and Object#should_not (Patch from Antti Tarvainen)
* Applied [#14186] Remove dead code from message_expecation.rb (Patch from Antti Tarvainen)
* Applied [#14183] Tiny improvement on mock_spec.rb (Patch from Antti Tarvainen)
* Applied [#14208] Fix to Mock#method_missing raising NameErrors instead of MockExpectationErrors (Patch from Antti Tarvainen)
* Applied [#14255] Fixed examples in mock_spec.rb and shared_behaviour_spec.rb (Patch from Antti Tarvainen)
* Applied [#14362] partially mocking objects that define == can blow up (Patch from Pat Maddox)
* test_ methods with an arity of 0 defined in a describe block or Example object will be run as an Example, providing a seamless transition from Test::Unit
* Removed BehaviourRunner
* Fixed [#13969] Spec Failures on Trunk w/ Autotest
* Applied [#14156] False positives with should_not (Patch from Antti Tarvainen)
* Applied [#14170] route_for and params_from internal specs fixed (Patch from Antti Tarvainen)
* Fixed [#14166] Cannot build trunk
* Applied [#14142] Fix for bug #11602: Nested #have_tag specifications fails on the wrong line number (Patch from Antti Tarvainen)
* Removed warn_if_no_files argument and feature
* Steps (Given/When/Then) with no blocks are treated as pending
* Applied [#13913] Scenario should treat no code block as pending (Patch from Evan Light)
* Fixed [#13370] Weird mock expectation error (Patch from Mike Mangino)
* Applied [#13952] Fix for performance regression introduced in r2096 (Patch from Ian Leitch)
* Applied [#13881] Dynamically include Helpers that are included on ActionView::Base (Patch from Brandon Keepers)
* Applied [#13833] ActionView::Helpers::JavaScriptMacrosHelper removed after 1.2.3 (Patch from Yurii Rashkovskii)
* Applied [#13814] RSpec on Rails w/ fixture-scenarios (Patch from Shintaro Kakutani)
* Add ability to define Example subclass instead of using describe
* Applied Patch from James Edward Gray II to improve syntax highlighting in TextMate
* Fixed [#13579] NoMethodError not raised for missing helper methods
* Fixed [#13713] form helper method 'select' can not be called when calling custom helper methods from specs
* Example subclasses Test::Unit::TestCase
* Added stub_everything method to create a stub that will return itself for any message it doesn't understand
* Added stories directory with stories/all.rb and stories/helper.rb when you script/generate rspec
* Applied [#13554] Add "And" so you can say Given... And... When... Then... And...
* Applied [#11254] RSpec syntax coloring and function pop-up integration in TextMate (Patch from Wincent Colaiuta)
* Applied [#13143] ActionView::Helpers::RecordIdentificationHelper should be included if present (Patch from Jay Levitt)
* Applied [#13567] patch to allow stubs to yield consecutive values (Patch from Rupert Voelcker)
* Applied [#13559] reverse version of route_for (Patch from Rupert Voelcker)
* Added [#13532] /lib specs should get base EvalContext
* Applied [#13451] Add a null_object option to mock_model (Patch from James Deville)
* Applied [#11919] Making non-implemented specs easy in textmate (Patch from Scott Taylor)
* Applied [#13274] ThrowSymbol recognized a NameError triggered by Kernel#method_missing as a thrown Symbol
* Applied [#12722] the alternate file command does not work in rails views due to scope (Patch from Carl Porth)
* Behaviour is now a Module that is used by Example class methods and SharedBehaviour
* Added ExampleDefinition
* Added story runner framework based on rbehave [#12628]
* Applied [#13336] Helper directory incorrect for rake stats in statsetup task (Patch from Curtis Miller)
* Applied [#13339] Add the ability for spec_parser to parse describes with :behaviour_type set (Patch from Will Leinweber and Dav Yaginuma)
* Fixed [#13271] incorrect behaviour with expect_render and stub_render
* Applied [#13129] Fix failing specs in spec_distributed (Patch from Bob Cotton)
* Applied [#13118] Rinda support for Spec::Distributed (Patch from Bob Cotton)
* Removed BehaviourEval
* Removed Behaviour#inherit
* Moved implementation of install_dependencies to example_rails_app
* Renamed RSPEC_DEPS to VENDOR_DEPS
* Added Example#not_implemented?
* You can now stub!(:msg).with(specific args)
* describe("A", Hash, "with one element") will generate description "A Hash with one element" (Tip from Ola Bini)
* Applied [#13016] [DOC] Point out that view specs render, well, a view (Patch from Jay Levitt)
* Applied [#13078] Develop rspec with autotest (Patch from Scott Taylor)
* Fixed [#13065] Named routes throw a NoMethodError in Helper specs (Patches from James Deville and Mike Mangino)
* Added (back) the verbose attribute in Spec::Rake::SpecTask
* Changed documentation to point at the new http svn URL, which is more accessible.
This is a maintenance release with mostly cleaning up, and one minor enhancement -
Modules are automatically included when described directly.
* Renamed Spec::Rails' rspec_resource generator to rspec_scaffold.
* Removed Spec::Rails' be_feed matcher since it's based on assert_select_feed which is not part of Rails (despite that docs for assert_select_encoded says it is).
* describe(SomeModule) will include that module in the examples. Like for Spec::Rails helpers, but now also in core.
* Header in HTML report will be yellow instead of red if there is one failed example
* Applied [#10951] Odd instance variable name in rspec_model template (patch from Kyle Hargraves)
* Improved integration with autotest (Patches from Ryan Davis and David Goodland)
* Some small fixes to make all specs run on JRuby.
* Added [#9735] support flexmock (thanks to Jim Weirich for his modifications to flexmock to support this)
* Spec::Rails controller specs will no longer let mock exception ripple through to the response.
* Fixed [#9260] IvarProxy does not act like a hash.
* Applied [#9458] The rspec_scaffold generator does not take into account class nesting (Patch from Steve Tendon)
* Applied [#9132] Rakefile spec:doc can fail without preparing database (Patch from Steve Ross)
* Applied [#9678] Custom runner command line switch, and multi-threaded runner (Patch from Bob Cotton)
* Applied [#9926] Rakefile - RSPEC_DEPS constant as an Array of Hashes instead of an Array of Arrays (Patch from Scott Taylor)
* Applied [#9925] Changed ".rhtml" to "template" in REST spec generator (Patch from Scott Taylor)
* Applied [#9852] Patch for RSpec's Website using Webgen 0.4.2 (Patch from Scott Taylor)
* Fixed [#6523] Run rspec on rails without a db
* Fixed [#9295] rake spec should run anything in the spec directory (not just rspec's standard dirs)
* Added [#9786] infer controller and helper names from the described type
* Fixed [#7795] form_tag renders action='/view_spec' in view specs
* Fixed [#9767] rspec_on_rails should not define rescue_action on controllers
* Fixed [#9421] --line doesn't work with behaviours that use class names
* Fixed [#9760] rspec generators incompatible with changes to edge rails
* Added [#9786] infer controller and helper names from the described type
* Applied a simplified version of [#9282] Change to allow running specs from textmate with rspec installed as a rails plugin (and no rspec gem installed)
* Applied [#9700] Make Spec::DSL::Example#name public / Add a --timeout switch. A great way to prevent specs from getting slow.
* In Rails, script/generate rspec will generate a spec.opts file that optimises faster/more efficient running of specs.
* Added [#9522] support using rspec's expectations with test/unit
* Moved rspec_on_rails up to the project root, simplifying the download url
* Fixed [#8103] RSpec not installing spec script correctly.
* The --spec option is replaced by the --example option.
* The --loadby option no longer supports a file argument. Use --example file_name instead.
* The --example option can now take a file name as an argument. The file should contain example names.
* Internal classes are named Behaviour/Example (rather than Context/Specification).
* You can now use mocha by saying config.mock_with :mocha in a spec_helper
* before_context_eval is replaced by before_eval.
* Applied [#9509] allow spaced options in spec.opts
* Applied [#9510] Added File for Ruby 1.8.6
* Applied [#9511] Clarification to README file in spec/
* Moved all of the Spec::Rails specs down to the plugins directory - now you can run the specs after you install.
* Updated RSpec.tmbundle to the 0.9 syntax and replaced context/specify with describe/it.
* Applied [#9232] ActionController::Base#render is sometimes protected (patch from Dan Manges)
* Added --reverse option, allowing contexts/specs to be run in reverse order.
* Added --loadby option, allowing better control over load order for spec files. mtime and file.txt supported.
* Implemented [#8696] --order option (see --reverse and --loadby)
* Added describe/it as aliases for context/specify - suggestion from Dan North.
* Applied [#7637] [PATCH] add skip-migration option to rspec_scaffold generator
* Added [#9167] string.should have_tag
* Changed script/rails_spec_server to script/spec_server and added script/spec (w/ path to vendor/plugins/rspec)
* Fixed [#8897] Error when mixing controller spec with/without integrated views and using template system other than rhtml
* Updated sample app specs to 0.9 syntax
* Updated generated specs to 0.9 syntax
* Applied [#8994] trunk: generated names for be_ specs (Multiple patches from Yurii Rashkovskii)
* Applied [#9983]: Allow before and after to be called in BehaviourEval. This is useful for shared examples.
Replaced assert_select fork with an assert_select wrapper for have_tag. This means that "should have_rjs" no longer supports :hide or :effect, but you can still use should_have_rjs for those.
* Added support in "rake stats" for view specs (in spec/views)
* Applied [#5801] QuickRef.pdf should say RSpec, not rSpec
* Applied [#5728] rails_spec_runner fails on Windows (Patch from Lindsay Evans).
* Applied [#5708] RSpec Rails plugin rspec_controller generator makes specs that do not parse.
* Cleaned up RSpec on Rails so it doesn't pollute as much during bootstrapping.
* Added support for response.should_have_tag and response.should_not_have_tag (works just like assert_tag in rails)
* Added new -c, --colour, --color option for colourful (red/green) output. Inspired from Pat Eyler's Redgreen gem.
* Added examples for Watir and Selenium under the gem's vendor directory.
* Renamed rails_spec_runner to rails_spec_server (as referred to in the docs)
* Added support for trying a plural for arbitrary predicates. E.g. Album.should_exist(:name => "Hey Jude") will call Album.exists?(:name => "Hey Jude")
* Added support for should_have to work with methods taking args returning a collection. E.g. @dave.should_have(3).albums_i_have_that_this_guy_doesnt(@aslak)
* Applied [#5065] to support using define_method rather than method_missing to capture expected messages on mocks. Thanks to Eero Saynatkari for the tip that made it work.
* Restructured directories and Modules in order to separate rspec into three distinct Modules: Spec::Expectations, Spec::Runner and Spec::Mocks. This will allow us to more easily integrate other mock frameworks and/or allow test/unit users to take advantage of the expectation API.
* Applied [#5620] support any boolean method and arbitrary comparisons (5.should_be < 6) (Patch from Mike Williams)
This release makes an official commitment to underscore_syntax (with no more support for dot.syntax)
* Fixed bug (5292) that caused mock argument matching to fail
* Converted ALL tests to use underscore syntax
* Fixed all remaining problems with underscores revealed by converting all the tests to underscores
* Enhanced sugar to support combinations of methods (i.e. once.and_return)
* Simplified helper structure taking advantage of dot/underscore combos (i.e. should.be.an_instance_of, which can be expressed as should be_an_instance_of)
* Added support for at_most in mocks
* Added support for should_not_receive(:msg) (will be removing should_receive(:msg).never some time soon)
* Added support for should_have_exactly(5).items_in_collection