Created
December 6, 2012 17:46
-
-
Save masonforest/4226449 to your computer and use it in GitHub Desktop.
How jQuery spies should work
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
describe "Quickpay.startQuickPay", -> | |
it "calls animate on .single_item_quick_pay", -> | |
quickPay = new Threadflip.QuickPay() | |
event = new jQuery.Event("click") | |
$('.single_item_quick_pay').spyOn('animate') | |
quickPay.startQuickPay(event) | |
expect($('.single_item_quick_pay').animate).toHaveBeenCalledWith({height: "300px"}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment