Skip to content

Instantly share code, notes, and snippets.

@radar
Forked from mattb20/spec and code
Created July 5, 2018 11:04
Show Gist options
  • Save radar/9bd5610cf35fcea3d25303d1119a7623 to your computer and use it in GitHub Desktop.
Save radar/9bd5610cf35fcea3d25303d1119a7623 to your computer and use it in GitHub Desktop.
it 'has a method that will call the transaction class' do
Transaction.should_receive(:new);
bank.send(:make_deposit, 5);
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