Skip to content

Instantly share code, notes, and snippets.

@mattb20
Created July 5, 2018 10:39
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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