Updates localization and home specs

This commit is contained in:
decabeza
2018-05-29 13:22:23 +02:00
parent 316c816836
commit 304143d051
3 changed files with 12 additions and 3 deletions

View File

@@ -3,10 +3,16 @@ require 'rails_helper'
feature 'Localization' do
scenario 'Wrong locale' do
card = create(:widget_card, title: 'Bienvenido a CONSUL',
description: 'Software libre para la participación ciudadana.',
link_text: 'Más información',
link_url: 'http://consulproject.org/',
header: true)
visit root_path(locale: :es)
visit root_path(locale: :klingon)
expect(page).to have_text('La ciudad que quieres será la ciudad que quieras')
expect(page).to have_text('Bienvenido a CONSUL')
end
scenario 'Available locales appear in the locale switcher' do