Displaying 1 result from an estimated 1 matches for "context_module".
Did you mean:
context_mode
2006 Nov 21
5
Specification Reuse to avoid Combinatorial Explosions
...making it more feasible to have
multiple contexts in a single file such as this group of scenarios
represented as contexts.
I also played with a more DSL-like syntax for this, which does not work for
rspec 0.7.2. This is in customer_withdraws_cash_alternative_spec.rb::
CustomerWithdrawsCashSpec = context_module do
specify "should debit the account" do
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
specify "should debi...