[rspec-users] given-when-then-and syntax support in Rspec
aslak.hellesoy at gmail.com
Sun Mar 27 18:57:08 EDT 2011
On Sun, Mar 27, 2011 at 11:16 PM, Rodrigo Rosenfeld Rosas
<lbocseg at yahoo.com.br> wrote:
> Em 27-03-2011 10:32, Matt Wynne escreveu:
>> On 27 Mar 2011, at 03:43, Rodrigo Rosenfeld Rosas wrote:
>>> Hi David and fellows,
>>> I know this subject has already been discussed here and there are already
>>> some attempts to support the given-when-then-and syntax in Rspec, like the
>>> links below:
>>> First, I don't understand the reason to adopt the capital method names
>>> Given/When/Then/And instead of given/when/then/and. Then, I don't think we
>>> can call this some real support for that syntax because "example" is not
>>> meant to be executed in any special order in Rspec nor it can be defined
>>> that any additional "then/and" should be aborted if a prior expectation
>>> wasn't met. And both solutions seem to work by simple aliasing "example" and
>>> I never used Cucumber because I find that working with it is cumbersome
>>> for most cases.
>>> I've been working mostly with Grails on my daily job for about 2 years
>>> now since I moved to my current job. I wanted something like Rspec for
>>> Groovy and Grails and while searching for some alternative, I found EasyB:
>>> Actually I liked the story syntax they provide as well as the reports and
>>> I found it would be useful for Rspec to incorporate that style too:
>>> What do you think?
>> Why not just use Cucumber?
> I'll repeat myself: "I never used Cucumber because I find that working with
> it is cumbersome for most cases".
Have you tried Steak? https://github.com/cavalle/steak
> That is really the reason :) I don't feel the need for the extra work. I
> just want to use directly the syntax in the test code. Writing step
> definitions besides the feature text seems too much work to me, while I
> would like to do both at once, even if I don't get some english-only (or any
> other language) specification.
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users