diff options
| author | Zog | 2017-12-19 14:24:10 +0100 | 
|---|---|---|
| committer | Zog | 2017-12-19 14:24:10 +0100 | 
| commit | 023fdab6840c7bb2d87d8ffee2df478574158d6e (patch) | |
| tree | 5d33a6634d5fd5af72802b99c68a412a2a6d353b | |
| parent | 98c08c6fae5b0bf59231b3e402ca91307c200297 (diff) | |
| download | chouette-core-023fdab6840c7bb2d87d8ffee2df478574158d6e.tar.bz2 | |
Refs #5333; Minor CR improvement
| -rw-r--r-- | spec/controllers/line_referentials_controller_spec.rb | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/spec/controllers/line_referentials_controller_spec.rb b/spec/controllers/line_referentials_controller_spec.rb index 380fe32fd..17ffb670d 100644 --- a/spec/controllers/line_referentials_controller_spec.rb +++ b/spec/controllers/line_referentials_controller_spec.rb @@ -6,7 +6,9 @@ RSpec.describe LineReferentialsController, :type => :controller do    describe 'PUT sync' do      let(:request){ put :sync, id: line_referential.id } -    it { request.should redirect_to "/403" } +    it 'should redirect to 403' do +       expect(request).to redirect_to "/403" +    end      with_permission "line_referentials.synchronize" do        it 'returns HTTP success' do | 
