Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it "should attempt to get summary data"
- var providers = new StringSet();
- var sections = new StringSet();
- var areas = new StringSet();
- var filter = new TicketSetFilter({
- cnt: 100,
- min: 25.0,
- max: 500.0,
- providers: providers,
- sections: sections,
- areas: areas});
- mockRequest().and_return('{ area_data: { area: "areas!"} }', 'application/json');
- stub(model, 'setSeatsData');
- model.should.receive('setSeatsData','once').with_args({ area: 'areas!'});
- model.initialize(filter);
- end
- ---
- initialize: function(filter){
- ...
- $.ajax({
- url: '/seats/ajax/get_summary_data',
- data: params,
- dataType: 'json',
- success: function(data, status){
- ...
Add Comment
Please, Sign In to add comment