search for: should_return_the_card

Displaying 1 result from an estimated 1 matches for "should_return_the_card".

2006 Nov 21
5
Specification Reuse to avoid Combinatorial Explosions
...account" do end end ... end ... context %{A Withdrawal where an Account is in credit AND the card is valid AND the dispenser contains cash AND the customer requests cash} do extend CustomerWithdrawsCashSpec should_debit_the_account should_dispense_cash should_return_the_card end This is currently possible with rspec 0.7.2. Whats interesting about putting all of the specifications into a module is that you can reduce the context to a few lines. This makes each context (scenario readable) making it more feasible to have multiple contexts in a single file such as this gr...