diff options
| author | Luc Donnet | 2017-10-24 14:00:07 +0200 |
|---|---|---|
| committer | Luc Donnet | 2017-10-24 14:00:07 +0200 |
| commit | 7160d39c6f785e7db247aa97efda257c38f629f8 (patch) | |
| tree | 9740879b295811315703789d36f683bd39d2c9e3 | |
| parent | fd7ccf86e4a8e3cbc514d01afd19beb03ffae8e8 (diff) | |
| download | chouette-core-7160d39c6f785e7db247aa97efda257c38f629f8.tar.bz2 | |
Fix spec/controllers/compliance_controls_controller_spec.rb redirect route for POST UPDATE
| -rw-r--r-- | spec/controllers/compliance_controls_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/compliance_controls_controller_spec.rb b/spec/controllers/compliance_controls_controller_spec.rb index 34b27530d..61e94025d 100644 --- a/spec/controllers/compliance_controls_controller_spec.rb +++ b/spec/controllers/compliance_controls_controller_spec.rb @@ -44,7 +44,7 @@ RSpec.describe ComplianceControlsController, type: :controller do describe 'POST #update' do it 'should be successful' do post :update, compliance_control_set_id: compliance_control_set.id, id: compliance_control.id, compliance_control: compliance_control.as_json.merge(type: 'GenericAttributeControl::MinMax') - expect(response).to redirect_to compliance_control_set_compliance_control_path(compliance_control_set, compliance_control) + expect(response).to redirect_to compliance_control_set_path(compliance_control_set) end end |
