Skip to content

Instantly share code, notes, and snippets.

@rclements
Created August 16, 2012 01:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rclements/3365289 to your computer and use it in GitHub Desktop.
Save rclements/3365289 to your computer and use it in GitHub Desktop.
it "issues credits to a student" do
@amount = BigDecimal("500.00")
@teacher.expects(:main_account).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