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

@@ -1,4 +1,4 @@
<div class="section-recommended">
<div id="section_recommended" class="section-recommended">
<div class="row">
<div class="small-12 column">

View File

@@ -95,7 +95,10 @@ feature "Home" do
debate = create(:debate, tag_list: "Sport")
visit root_path
click_on debate.title
within('#section_recommended') do
click_on debate.title
end
expect(page).to have_current_path(debate_path(debate))
end

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