2005/11/2, James Britt <james_b / neurogami.com>:
>
> Such as
>
> test_method :add_item => [:item4] do
>     given {@items = [:item1, :item2, :item3]}
>     expected {size == 4}
> end
>

You could probably get off with the "assert" used already, ala:

test_method :add_item => [:item4] do
    given {@items = [:item1, :item2, :item3]}
    assert {size == 4}
end

Or:

test :adding_an_item do
    given { @items = [:item1, :item2, :item3] }
    and_on { add_item :item4 }
    assert { size == 4 }
end

Where and_on is much the same as given.

Douglas