阅读更多

7顶
0踩

编程语言

原创新闻 rspec 1.2.0发布

2009-03-16 16:29 by 见习记者 cswcafe 评论(0) 有3962人浏览

rspec 发布1.2.0版本了,大家可以使用gem update 命令来更新到最新的版本,以下是官方网站上对rspec 1.2.0修改的说明 。

 

新版本主要更新包括:heckle-1.4.2 集成更加干净;允许使用path-like key注册范例组;添加 spec/test/unit 作为更直观的路径加载 test/unit interop lib ;添加明确的自动运行功能等。

http://rspec.info/documentation/changes-rspec.html

=== Version 1.2.0

WARNINGS:

  * If you use the ruby command to run specs instead of the spec command, you'll
    need to require 'spec/autorun' or they won't run. This won't affect you if
    you use the spec command or the Spec::Rake::SpecTask that ships with RSpec.

  * require 'spec/test/unit' to invoke test/unit interop if you're using
    RSpec's core (this is handled implicitly with spec-rails)

  * setup and teardown are gone - use before and after instead

    * you can still use setup and teardown if you're using
      Test::Unit::TestCase as the base ExampleGroup class (which is implicit
      in rspec-rails)
     
  * The matcher protocol has been improved. The old protocol is still
    supported, so as long as you're not monkey patching rspec's built-in
    matchers, or using extension libraries that do, this should not affect
    you. If you run into trouble, you'll just need to change:
   
    * failure_message          => failure_message_for_should
    * negative_failure_message => failure_message_for_should_not
     
  * All references to rubygems have been removed from within rspec's code.
 
    * See http://gist.github.com/54177 for rationale and suggestions on
      alternative approaches to loading rubygems

* deprecations

  * BaseTextFormatter#colourize - use colorize_failure instead.
  * BaseTextFormatter#magenta - use red instead.

* enhancements

  * cleaner integration with with heckle-1.4.2
  * allow registering example groups with a path-like key (Pat Maddox)
  * start DRb service at "druby://localhost:0" (Hongli Lai) - See http://redmine.ruby-lang.org/issues/show/496
  * consistent reporting of errors as failures
  * added spec/test/unit as more intuitive path to loading test/unit interop lib
  * added explicit autorun feature for running specs with ruby command
  * added handling for does_not_match? for matchers that want to know the context in which they were called
  * lots of ruby 1.9.1 compatibility fixes from Chad Humprhies
  * improved feedback from be_kind_of/be_a_kind_of/be_instance_of/be_an_instance_of (Jakub Šťastný)
  * added --format silent (l) option, which is now the default when running --heckle (Bob Aman)
  * sexy new custom matcher creation (Corey Haines & David Chelimsky - initial concept by Yehuda Katz)
  * improved matcher protocol - old one is still supported, but new one is cleaner and prefered
 
* bug fixes

  * support delegating operator matchers to subject with should_not
  * all arguments are included if --drb is specified in spec.opts (Neil Buckley). Closes #671.
  * added --autospec option hack (used internally) to get --color to work when using --drb and autospec.
  * Fixed mock framework failure message bug in which similar calls were excluded from the output
  * cryptic error message on change.rb when the from value is wrong (Michael Murray). Closes #706.

 

7
0
评论 共 0 条 请登录后发表评论

发表评论

您还没有登录,请您登录后再发表评论

相关推荐

  • 系统文件shell32.dll中的图标

    系统文件 shell32.dll 中的全部图标.

  • 提取Windows中系统自带的图标资源

    提取Windows自带的图标资源,提取DLL/EXE中的资源。

  • Windows系统shell32.dll丢失怎么解决?找不到shell32.dll文件是什么原因?

    文件丢失文件丢失是电脑运行时常见的问题之一,可能是由于病毒攻击、不当的文件操作、硬盘故障等原因导致。丢失的文件可能是系统文件,也可能是应用程序的组件,如“shell32.dll”。文件损坏文件损坏可能由多种原因引起,如硬盘读写错误、文件被恶意篡改等。损坏的文件可能导致程序无法正常运行或崩溃。系统报错系统报错通常涉及各种错误代码和消息,这些错误代码可以帮助我们定位问题的根源。系统报错可能由硬件故障、驱动程序问题、系统文件损坏或软件冲突等多种原因引起。

  • shell32.dll 的图标清单

    shell32.dll 的图标对应的清单

  • 输出SHELL32.DLL的图标 (转)

    输出SHELL32.DLL的图标 (转)[@more@]unit iconobject; interface uses windows, Messages, SysUtils, Classes, Graphics, ...

  • Windows 10 自带那么多图标,去哪里找呢?

    无意间发现我的 D 盘根目录中大部分的文件夹都是系统专用文件夹,有自己的独特图标,偶有一两个开发用的文件夹是默认图标。于是想把它们改成独特样式,而且是 Windows 10 那些新图标样式! 这是我的文件夹,我希望把最上面几个文件夹的图标改成下面那些风格。 大家都知道在文件夹上右键,选择 属性 → 自定义 → 更改图标,这里可以选择很多图标,但用了很多年看腻了,Windows 10 中...

  • 获取系统图标。

    米度软件:www.midosoft.cn   系统图标通常存放在Shell32.dll文件,使用ExtractIcon()函数能够从中提取出对应的图标。以下是提取文件Shell32.dll中的第6个图标的示例代码:void CTestView::OnRButtonDown(UINT nFlags,CPoint point){ HICON hIcon=::Extr

  • 使用Shell32.dll中的图标资源

    uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,shellapi,Dialogs; type TForm1 = class(TForm) procedure FormCreate(Sender: TObject); procedure FormClose(Sender: TObje...

  • VB显示“shell32.dll”中的图标

    '在Form上添加一个ListBox列表控件。

  • Windows10系统Shell32中默认图标下载

    Windows10系统Shell32中默认图标,其中447种 x 5个图标(24x24,32x32,40x40,48x48,64x64),一共2235个图标

  • win10系统自带图标/壁纸位置

    win10系统自带图标/壁纸位置

  • 从 Shell32.dll 中载入图标

    HICON hIcons[256];HINSTANCE hShell32 = LoadLibrary(_T("Shell32.dll"));for (int i = 0; i < 256; ++i){ hIcons[i] = LoadIcon(hShell32, MAKEINTRESOURCE(i));}   很容易得到 Shell32.dll 中所有图标

  • 通过改DLL来美化系统图标(转)

    ※ 关于系统托盘图标的修改 ※网络连接和音量~~~这两个都在C:WINDOWSsystem32文件夹下面,可以找到地(网络连接)图标是在netshell.dll图标项的#1915--#1918 (音量)stobject.dll图...

Global site tag (gtag.js) - Google Analytics