On Dec 20, 2010, at 10:56 AM, Roger Pack wrote:
> Sorry if I mentioned this one before, but has anyone proposed being able
> to do something like
>
>
> "it should be able".to {
>
> }
>
> ? (or something like that)...
>
> Might be preferable where a test description doesn't start with "it"
I think ending in "to" is just as constraining as starting with "it", no?
> Thoughts?
"it" and "specify" are both aliases for "example", so you can say:
describe "foo" do
example "doing something or other" do
...
end
end
HTH,
David
>
> Thanks.
> -r
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/rspec-users
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users