Files | Admin

Notes:

Release Name: RSpec 0.6.4

Notes:

In addition to a number of bug fixes and patches, this release begins to formalize the support for
RSpec on Rails.




Changes: * Fixed [#5909], once again supporting multi_word_predicates * Applied [#5873] - response.should_have_rjs (initial patch from Jake Howerton, based on ARTS by Kevin Clark) * Added generation of view specs for rspec_on_rails * Applied [#5815] active_record_subclass.should_have(3).records * 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) * Added [#5570] should_not_receive(:msg).with(:specific, "args") * 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)