diff options
| author | Luc Donnet | 2017-09-11 09:39:52 +0200 | 
|---|---|---|
| committer | Luc Donnet | 2017-09-11 09:39:52 +0200 | 
| commit | 1b2976d7a63cc140304bd94b88b5ddc93e0aceb0 (patch) | |
| tree | d26ee6518699ac6b009cd606a0981767748acdc9 | |
| parent | 44dedd499c075a99027f5442cca5c6802b8dae86 (diff) | |
| download | chouette-core-1b2976d7a63cc140304bd94b88b5ddc93e0aceb0.tar.bz2 | |
Fix spec error format
| -rw-r--r-- | spec/models/concerns/error_format_spec.rb | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/spec/models/concerns/error_format_spec.rb b/spec/models/concerns/error_format_spec.rb index 45b4c2f60..f82aecf44 100644 --- a/spec/models/concerns/error_format_spec.rb +++ b/spec/models/concerns/error_format_spec.rb @@ -1,7 +1,7 @@  RSpec.describe ErrorFormat do -   -  context '#details' do  -    context 'are empty' do  + +  context '#details' do +    context 'are empty' do        it 'if no errors are present' do          expect(            described_class.details(build_stubbed(:referential)) @@ -14,7 +14,7 @@ RSpec.describe ErrorFormat do        end      end -    context 'are not empty' do  +    context 'are not empty' do        it 'if an error is present and validation has been carried out' do          invalid = build_stubbed(:referential, name: nil)          expect( invalid ).not_to be_valid @@ -27,12 +27,12 @@ RSpec.describe ErrorFormat do          create(:referential, name: 'hello')          invalid = build_stubbed(            :referential, -          name: 'hello', +          name: '',            slug: 'hello world'          )          expect( invalid ).not_to be_valid          expect( described_class.details(invalid) ).to eq({ -          name: { error: "n'est pas disponible", value: 'hello' }, +          name: { error: "doit ĂȘtre rempli(e)", value: '' },            slug: { error: "n'est pas valide", value: 'hello world' }          })        end | 
