Skip to content

Commit

Permalink
Merge pull request #2582 from himdel/fix-report-data-post
Browse files Browse the repository at this point in the history
ReportDataController spec - fix report_data mocking by removing too-specific contstraints
(cherry picked from commit 7d95502)
  • Loading branch information
chessbyte authored and simaishi committed Oct 31, 2017
1 parent 1baaac7 commit 436897d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions spec/javascripts/controllers/report_data_controller_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ describe('reportDataController', function () {
beforeEach(function() {
$controller.MiQEndpointsService.rootPoint = '/mock_root';
$httpBackend
.whenPOST('/mock_root/report_data', {
active_tree: 'vandt_tree',
model: 'manageiq/providers/infra_manager/vms',
})
.when('POST', '/mock_root/report_data')
.respond(report_data);
});

Expand Down Expand Up @@ -76,10 +73,7 @@ describe('reportDataController', function () {
beforeEach(function(done) {
$controller.MiQEndpointsService.rootPoint = '/mock_root';
$httpBackend
.whenPOST('/mock_root/report_data', {
active_tree: 'vandt_tree',
model: 'manageiq/providers/infra_manager/vms',
})
.when('POST', '/mock_root/report_data')
.respond(report_data);
$controller.initController(initObject).then(function() {
done();
Expand Down

0 comments on commit 436897d

Please sign in to comment.