[rspec-users] Request for comments: additional new expectation syntax

Myron Marston myron.marston at gmail.com
Sun Mar 4 07:37:24 UTC 2012


I've opened a pull request with an initial implementation of using
`expect` to set normal expectations in addition to block ones:

expect(something).to be_awesome

Note that it's not simply the syntax change that's driving the
possibility of introducing this.  It's the fact that the `should` and
`should_not` syntax has occasionally been prone to problems that the
`expect` syntax would avoid entirely.

It'd be great to get feedback from other RSpec users about this.
Here's the pull request:

https://github.com/rspec/rspec-expectations/pull/119

Please leave comments there.  I don't often have time to keep up with
the rspec mailing list so I likely won't see comments here.


More information about the rspec-users mailing list