saasbook

movie_popup_json_spec.js

Apr 2nd, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. describe('MoviePopupJson', function() {
  2. describe('successful AJAX call', function() {
  3. beforeEach(function() {
  4. loadFixtures('movie_row.html');
  5. var jsonResponse = getJSONFixture('movie_info.json');
  6. spyOn($, 'ajax').andCallFake(function(ajaxArgs) {
  7. ajaxArgs.success(jsonResponse, '200');
  8. });
  9. $('#movies a').trigger('click');
  10. });
  11. // 'it' clauses are same as in movie_popup_spec.js
  12. });
  13. });
Add Comment
Please, Sign In to add comment