Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
simonv3 committed Dec 30, 2015
1 parent e9f7350 commit 15b96ba
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ openFarmApp.directive('guidesStages', ['$http', '$q', '$rootScope', '$filter',
// stages.push(preloadedStage);
// }
// });
// console.log('setting default stages');
// return buildDetailsForStages(stages);
// };

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,10 @@ openFarmApp.directive('ofShowGuideStages', ['$http', '$modal', 'stageService',
images: stage.pictures
};

console.log(data);

stageService.updateStageWithPromise(stage.id, {'data': data})
.then(function(response) {
$scope.triggerGuideUpdate();
console.log('success', response);
}, function(error) {
console.log('error', error)
});
Expand Down
1 change: 0 additions & 1 deletion app/assets/javascripts/guides/show.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ openFarmApp.controller('showGuideCtrl', ['$scope', '$http', 'guideService', '$q'
// $scope.isNotUndefined = $scope.guide.stages.filter(function(s) {
// return undefined !== s
// }).length === $scope.guide.stages.length;
// console.log($scope.isNotUndefined);
if (true) {
$scope.haveTimes = $scope.guide.stages
.sort(function(a, b){ return a.order > b.order; })
Expand Down
1 change: 0 additions & 1 deletion app/models/picture.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def from_url(file_location, parent)
# end

end
puts pic
pic.save!
pic
end
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/api/api_guides_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
end
expect(response.status).to eq(201)
img_url = json['data']['attributes']['featured_image']['image_url']
expect(img_url).to include('.jpg')
expect(img_url).to include('/system/')
end

it 'should give current_user a badge for creating a guide' do
Expand Down

0 comments on commit 15b96ba

Please sign in to comment.