On 10/18/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > On 10/18/07, Wincent Colaiuta <[EMAIL PROTECTED]> wrote: > > El 18/10/2007, a las 18:42, "David Chelimsky" <[EMAIL PROTECTED]> > > escribió: > > > > > Easier to type, sure. I'm not in love w/ the names yet though because > > > they sound like verb phrases - "given matcher", "when matcher", "then > > > matcher". > > > > > > How about something like match_given, match_when, match_then? > > > > That would be fine too. I mainly just wanted to avoid having to > > manually pass the symbol in. > > > > Another alternative combining your suggestion with what Pat mentioned: > > > > step_matchers do |match| > > match.given ... > > match.when ... > > match.then ... > > end > > That's nice, except we don't want methods named when and then as they > are keywords :( > > We could do match.given, match.event and match.outcome, but that adds > a mental mapping that we might want to avoid.
I had thought about putting the match method on string, so it becomes "an addend of $addend".matcher(:given) do {blah blah} or something similar. But I don't really like that because I want "given" to be the first thing on the line. Pat _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users