On Tue, Apr 28, 2009 at 2:11 AM, Jérémy Kaz <li...@ruby-forum.com> wrote:


> Given I am logged in as a SuperAdmin user
> When I go to the VATs page
> And I follow "New VAT"
> And I fill in "vat_caption" with "<caption>"
> And I fill in "vat_value" with "<value>"
> And I press "Créer"
> Then I should see "<message>"
> And the VAT "<caption>" should be present in the VAT list
> <==================== What it's all about, works if VAT added, but
> shouldn't be interpreted if VAT not added
>

In the examples, make the caption something like "impossible". Then in the
last step, don't bother looking in the list if the caption has that value.
Perhaps even make sure the list is empty under those conditions.

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

Reply via email to