Go from organisation edition back to organisation consultation
This commit is contained in:
parent
517fb30e55
commit
d7eb4c9cf7
@ -26,7 +26,7 @@ class OrgasController < ApplicationController
|
|||||||
@orga = Orga.new orga_params
|
@orga = Orga.new orga_params
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
if @orga.save
|
if @orga.save
|
||||||
format.html { redirect_to :root, notice: t('.ok') }
|
format.html { redirect_to @orga, notice: t('.ok') }
|
||||||
# 201 means :created
|
# 201 means :created
|
||||||
format.json { render action: 'show', status: 201, location: @orga }
|
format.json { render action: 'show', status: 201, location: @orga }
|
||||||
else
|
else
|
||||||
|
@ -37,7 +37,7 @@ class OrgasControllerTest < ActionDispatch::IntegrationTest
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
assert_redirected_to :root
|
assert_redirected_to assigns(:orga)
|
||||||
end
|
end
|
||||||
|
|
||||||
test 'should create minimalist orga' do
|
test 'should create minimalist orga' do
|
||||||
@ -53,7 +53,7 @@ class OrgasControllerTest < ActionDispatch::IntegrationTest
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
assert_redirected_to :root
|
assert_redirected_to assigns(:orga)
|
||||||
end
|
end
|
||||||
|
|
||||||
test 'should not create orga' do
|
test 'should not create orga' do
|
||||||
|
Loading…
Reference in New Issue
Block a user