Sha256: 815fe9ab9b1c75054506cca05c032226c6182f8f40700f728726467532322700
Contents?: true
Size: 833 Bytes
Versions: 1
Compression:
Stored size: 833 Bytes
Contents
beforeEach(function () { jasmine.addMatchers({ }); }); function lastRequest(){ if (typeof jasmine.Ajax.requests.mostRecent() == 'undefined'){ var err = new Error('jasmine ajax error: No request made.'); console.dir(err); throw err }; return jasmine.Ajax.requests.mostRecent() }; function noAjaxRequests(){ return typeof jasmine.Ajax.requests.mostRecent() == 'undefined' } function requestCount(){ return jasmine.Ajax.requests.count() }; function fillIn( finder, value ){ $(finder).val(value); }; function clickSubmit(){ $('form input[type="submit"]').click(); }; function click(finder){ $(finder).click(); }; function currentFunctionName() { var myName = arguments.callee.caller.toString(); myName = myName.substr('function '.length); return myName.substr(0, myName.indexOf('(')); }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capybara-jasmine-0.1.4 | lib/capybara-jasmine-files/js/SharedHelpers.js |