Guest User

Untitled

a guest
Mar 17th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. it "should attempt to get summary data"
  2. var providers = new StringSet();
  3. var sections = new StringSet();
  4. var areas = new StringSet();
  5. var filter = new TicketSetFilter({
  6. cnt: 100,
  7. min: 25.0,
  8. max: 500.0,
  9. providers: providers,
  10. sections: sections,
  11. areas: areas});
  12.  
  13. mockRequest().and_return('{ area_data: { area: "areas!"} }', 'application/json');
  14. stub(model, 'setSeatsData');
  15. model.should.receive('setSeatsData','once').with_args({ area: 'areas!'});
  16.  
  17. model.initialize(filter);
  18. end
  19.  
  20. ---
  21.  
  22. initialize: function(filter){
  23. ...
  24. $.ajax({
  25. url: '/seats/ajax/get_summary_data',
  26. data: params,
  27. dataType: 'json',
  28. success: function(data, status){
  29. ...
Add Comment
Please, Sign In to add comment