Created
July 5, 2018 10:39
-
-
Save mattb20/f98091f75dee6a07ed567fa4074bccc0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it 'has a method that will call the transaction class' do | |
bank.send(:make_deposit, 5); | |
Transaction.should_receive(:new); | |
end | |
def make_deposit(amount) | |
Transaction.new(self, 'deposit', amount); | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment