require 'spec_helper'

describe HighVoltage::PagesController, '#show' do
  render_views

  %w(about_us faq).each do |page|
    %w(en fr pt ru).each do |locale|
      context "on GET to /#{locale}/#{page}" do
        before do
          get :show, id: page, locale: locale
        end

        it { is_expected.to respond_with(:success) }
        it { is_expected.to render_template(page) }
      end
    end
  end
end

require 'spec_helper'

describe HighVoltage::PagesController, '#show' do
  render_views

  %w(about_us faq).each do |page|
    %w(en es fr pt ru).each do |locale|
      context "on GET to /#{locale}/#{page}" do
        before do
          get :show, id: page, locale: locale
        end

        it { is_expected.to respond_with(:success) }
        it { is_expected.to render_template(page) }
      end
    end
  end
end

Add es as a valid locale to the PagesController specs
Add es as a valid locale to the PagesController specs
