Commit 1d95eba2d7e643a2cd2536b49fd0ccbd154726cc
1 parent
75ce408f
Exists in
colab
and in
4 other branches
Fixed multiple reprocessing behaviour while creating a repository
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/controllers/repositories_controller.rb
... | ... | @@ -88,7 +88,7 @@ class RepositoriesController < ApplicationController |
88 | 88 | @repository.process |
89 | 89 | set_configuration |
90 | 90 | respond_to do |format| |
91 | - format.html { render :show } | |
91 | + format.html { redirect_to project_repository_path(@repository.project_id, @repository.id) } | |
92 | 92 | end |
93 | 93 | end |
94 | 94 | ... | ... |
spec/controllers/repositories_controller_spec.rb
... | ... | @@ -333,6 +333,6 @@ describe RepositoriesController do |
333 | 333 | MezuroConfiguration.expects(:find).with(repository.id).returns(FactoryGirl.build(:mezuro_configuration)) |
334 | 334 | get :process_repository, project_id: project.id.to_s, id: repository.id |
335 | 335 | end |
336 | - it { should render_template(:show) } | |
336 | + it { should redirect_to(project_repository_path(repository.project_id, repository.id)) } | |
337 | 337 | end |
338 | 338 | end | ... | ... |