Test pasting into a field in Rails
On my web page's registration page, I have disabled pasting (with javascript) any text into the 'E-mail confirmation' fiel开发者_Go百科d. I want to create a test to test this functionality. Is there a way for me to do this?
$(document).ready(function () {
$('#email_confirmation').bind('paste', function (e) {
e.preventDefault();
});
});
精彩评论