>
>  Then /^I (should|should not) see the people search form$/ do
> |should_or_should_not|
>  expect_that(response, should_or_should_not, have_tag('form#frmSearch'))
> end
>
> def expect_that(target, should_or_should_not, matcher)
>  target.send should_or_should_not.underscore.to_sym, matcher
> end
>
> I definitely don't see this in Cucumber, BTW as "should" and "should
> not" are not the only way to express positive and negative
> expectations even in English, let alone other languages that might not
> deal w/ negation in such clean and consistent ways.
>


Yeah, I went down a similar line of thinking that went as far as splitting
Then's into 2 steps like so:

Then /^I/ do...
Should /^see the people search form/ do

Where the former returns the target object and the latter returns the
matcher.

An interesting concept, but it definitely doesn't fit with Cucumber as we
know it today.

Jeff
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to