Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe SavingsAccount do
- it_should fullfill_role("account") do |contract|
- contract.overdraft do |account|
- initial_balance = account.balance
- account.withdraw(initial_balance + 1)
- account.balance.should == initial_balance
- end
- end
- end
Add Comment
Please, Sign In to add comment