[Rspec-devel] dots vs underscores tally

aslak hellesoy aslak.hellesoy at gmail.com
Wed Jun 7 18:08:26 EDT 2006


On 6/7/06, David Chelimsky <dchelimsky at gmail.com> wrote:
> On 6/7/06, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:
> > I will:
> > * Keep internal Test::Unit tests the way they are (mostly dots)
>
> My thinking is that if we're committed to underscores, then that's
> what we should support. The tests should change to use underscores.
> I'll be glad to change them myself.
>

I have already changed all the docs and the tests, except the ones
that test the chaining of helpers. They still use dots.

> Doing this will give us more freedom in implementation. For example,
> right now the HaveHelper has methods "at" and "least" and "most". If
> we abandon official dot-support, there's no reason we can't change
> that to "at_least" and "at_most", at which point the code speaks a bit
> better IMO.
>
> Thoughts?
>

I think the internal implementation with chained helper is great, so I
hope you don't
want to change that.

I suppose we could implement at_least and at_most and tweak sugar.rb
to account for those special cases.

Aslak

> David
> _______________________________________________
> Rspec-devel mailing list
> Rspec-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-devel
>


More information about the Rspec-devel mailing list