require 'spec_helper'

describe HighVoltage::PagesController, '#show' do
  pages = %w(about press help developers legal privacy disclaimer cookies)
  pages.each do |page|
    context "on GET to /pages/#{page}" do
      before do
        get :show, id: page
      end

      it { should respond_with(:success) }
      it { should render_template(page) }
    end
  end
end
