Skip to content

Instantly share code, notes, and snippets.

@knewter
Forked from rclements/gist:3365289
Created August 16, 2012 01:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knewter/3365310 to your computer and use it in GitHub Desktop.
Save knewter/3365310 to your computer and use it in GitHub Desktop.
it "issues credits to a student" do
@amount = BigDecimal("500.00")
@teacher.expects(:main_account_name).with(@school).returns(@teacher_account_name)
@credit_manager.expects(:transfer_credits).with("Issue Credits to Student", @teacher_account_name, @student_account_name, @amount).once
@credit_manager.issue_credits_to_student(@school, @teacher, @student, @amount)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment