Change single quotes to double quotes

This commit is contained in:
Julian Herrero
2019-02-01 16:48:49 +01:00
parent 4a12425987
commit 31ac8b7f55
302 changed files with 6403 additions and 6403 deletions

View File

@@ -1,44 +1,44 @@
require 'rails_helper'
require "rails_helper"
feature 'Localization' do
feature "Localization" do
scenario 'Wrong locale' do
scenario "Wrong locale" do
Globalize.with_locale(:es) do
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/',
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)
end
visit root_path(locale: :es)
visit root_path(locale: :klingon)
expect(page).to have_text('Bienvenido a CONSUL')
expect(page).to have_text("Bienvenido a CONSUL")
end
scenario 'Available locales appear in the locale switcher' do
visit '/'
scenario "Available locales appear in the locale switcher" do
visit "/"
within('.locale-form .js-location-changer') do
expect(page).to have_content 'Español'
expect(page).to have_content 'English'
within(".locale-form .js-location-changer") do
expect(page).to have_content "Español"
expect(page).to have_content "English"
end
end
scenario 'The current locale is selected' do
visit '/'
expect(page).to have_select('locale-switcher', selected: 'English')
scenario "The current locale is selected" do
visit "/"
expect(page).to have_select("locale-switcher", selected: "English")
end
scenario 'Changing the locale', :js do
visit '/'
expect(page).to have_content('Language')
scenario "Changing the locale", :js do
visit "/"
expect(page).to have_content("Language")
select('Español', from: 'locale-switcher')
expect(page).to have_content('Idioma')
expect(page).not_to have_content('Language')
expect(page).to have_select('locale-switcher', selected: 'Español')
select("Español", from: "locale-switcher")
expect(page).to have_content("Idioma")
expect(page).not_to have_content("Language")
expect(page).to have_select("locale-switcher", selected: "Español")
end
context "Only one locale" do
@@ -50,9 +50,9 @@ feature 'Localization' do
after { I18n.reload! }
scenario "Locale switcher not present" do
visit '/'
expect(page).not_to have_content('Language')
expect(page).not_to have_css('div.locale')
visit "/"
expect(page).not_to have_content("Language")
expect(page).not_to have_css("div.locale")
end
end
@@ -73,11 +73,11 @@ feature 'Localization' do
I18n.locale = I18n.default_locale
end
scenario 'Available locales without language translation display locale key' do
visit '/'
scenario "Available locales without language translation display locale key" do
visit "/"
within('.locale-form .js-location-changer') do
expect(page).to have_content 'wl'
within(".locale-form .js-location-changer") do
expect(page).to have_content "wl"
end
end