diff options
| author | cedricnjanga | 2018-04-24 08:41:44 -0700 | 
|---|---|---|
| committer | cedricnjanga | 2018-04-24 08:41:44 -0700 | 
| commit | 1fd02d51c9fd78900a24f176600c5ee23caaf4cf (patch) | |
| tree | 8da9cff6ea699243f862f76ed9a9f645eaea454d /spec/features/calendars_permissions_spec.rb | |
| parent | 32c47f4d0ce0c6ed0f41359ed15178da18b5f5d9 (diff) | |
| download | chouette-core-1fd02d51c9fd78900a24f176600c5ee23caaf4cf.tar.bz2 | |
Fix specs (I18n problem)
Diffstat (limited to 'spec/features/calendars_permissions_spec.rb')
| -rw-r--r-- | spec/features/calendars_permissions_spec.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/spec/features/calendars_permissions_spec.rb b/spec/features/calendars_permissions_spec.rb index 656c0dd78..6b0b782db 100644 --- a/spec/features/calendars_permissions_spec.rb +++ b/spec/features/calendars_permissions_spec.rb @@ -57,14 +57,14 @@ RSpec.describe 'Calendars', type: :feature do        context 'if present → ' do          let( :permission ){ true }          it 'index shows an edit button' do -          expect(page).to have_css('a.btn.btn-default', text: 'Créer') +          expect(page).to have_css('a.btn.btn-default', text: I18n.t('actions.add'))          end        end        context 'if absent → ' do          let( :permission ){ false }          it 'index does not show any edit button' do -          expect(page).not_to have_css('a.btn.btn-default', text: 'Créer') +          expect(page).not_to have_css('a.btn.btn-default', text: I18n.t('actions.add'))          end        end      end | 
