[rspec-users] ANN: RSpec 0.9.0 beta-1 available for download.

David Chelimsky dchelimsky at gmail.com
Thu Apr 5 13:01:11 EDT 2007


On 4/5/07, Wincent Colaiuta <win at wincent.com> wrote:
> El 4/4/2007, a las 18:33, aslak hellesoy escribió:
>
> > RSpec 0.9 introduces a new API for expectations, which essentially
> > means that your underscores go away
>
> Can you please give an example of what this looks like? I've looked
> at the various "dot vs underscore" discussions on the lists so I'm
> interested to see what the new style is.

Instead of this:

actual.should_equal(expected)
team.should_have(3).players
5.should_be < 7

you say this:

actual.should equal(expected)
team.should have(3).players
5.should be < 7

>
> Cheers,
> Wincent
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list