[rspec-devel] ANN: RSpec 0.9.0 beta-1 available for download.
Scott Taylor
mailing_lists at railsnewbie.com
Thu Apr 5 00:27:49 EDT 2007
Wow. You guys are super productive. Good job!
So when can I officially become a junior developer?
Scott
On Apr 4, 2007, at 2:16 PM, David Chelimsky wrote:
> On 4/4/07, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:
>> We'd like to get some feedback on RSpec 0.9 before we start pushing
>> out releases via Rubyforge's gem server and update the website. We
>> have therefore made the first beta of 0.9 available - both
>> prepackaged
>> and tagged in subversion (see below).
>>
>> RSpec 0.9 introduces a new API for expectations, which essentially
>> means that your underscores go away (there has been other discussions
>> on the lists about this). In addition to this, you can say
>> describe/it
>> instead of context/specify. We believe this will lead to even more
>> readable - and well-written specs. (context/specify will still be
>> supported for a while).
>>
>> == Translator ==
>> In order to ease the transition from 0.8 to 0.9, we have included a
>> tool to translate your 0.8 style specs to 0.9 style. After installing
>> the 0.9 gem, you should run:
>>
>> spec_translator path_to_my_spec_dir path_to_my_translated_spec_dir
>>
>> (or alternatively, if you have your code under version control and
>> can
>> do a revert if things go wrong:)
>>
>> spec_translator path_to_my_spec_dir path_to_my_spec_dir
>>
>> (This will translate your specs in-place)
>>
>> == Where to get it ==
>>
>> RSpec core is available here:
>>
>> * http://rspec.rubyforge.org/rspec-0.9.0.gem
>> * http://rspec.rubyforge.org/rspec-0.9.0.tgz
>> * http://rspec.rubyforge.org/rspec-0.9.0.zip
>> * http://rspec.rubyforge.org/RSpec-0.9.0.tmbundle.tgz
>>
>> == Rails users ==
>> For those of you who want to install 0.9 beta as plugins, the svn
>> URLs are:
>> * svn://rubyforge.org/var/svn/rspec/tags/REL_0_9_0_BETA_1/rspec
>> * svn://rubyforge.org/var/svn/rspec/tags/REL_0_9_0_BETA_1/
>> rspec_on_rails
>>
>> (Don't forget to do do a "script generate rspec" to update your
>> local files)
>
> Since we haven't updated the website yet you can't see the change log
> w/o downloading it - here's some of what it has to say:
>
> * Sugar FREE!
> * 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.
> * New --failures option which will write out a file that can later be
> used with --example.
> * 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_resource 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)
>
> I've been blogging about some of the new features, and will continue
> to do so. Aslak and Dave also blog about rspec features from time to
> time so check their blogs out as well:
>
> http://blog.davidchelimsky.net/
> http://blog.aslakhellesoy.com/
> http://blog.daveastels.com/
>
> Cheers,
> David
>
>>
>> Cheers,
>> Aslak
>> _______________________________________________
>> rspec-devel mailing list
>> rspec-devel at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-devel
>>
> _______________________________________________
> rspec-devel mailing list
> rspec-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-devel
More information about the rspec-devel
mailing list