Sha256: cf878ce959f6fdce88f44751bac886762a396e2ee3e204d137a5bff44a3c46db

Contents?: true

Size: 300 Bytes

Versions: 7

Compression:

Stored size: 300 Bytes

Contents

require 'spec_helper'

describe 'Home page route' do
  before(:each) do
    HighVoltage.home_page = 'home'
    Rails.application.reload_routes!
  end

  it 'redirects the duplicate content to root' do
    get '/home'
    expect(response.headers['Location']).to eq 'http://www.example.com/'
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
high_voltage-3.1.1 spec/requests/home_page_spec.rb
high_voltage-3.1.0 spec/requests/home_page_spec.rb
high_voltage-3.0.0 spec/requests/home_page_spec.rb
high_voltage-2.4.0 spec/requests/home_page_spec.rb
high_voltage-2.3.0 spec/requests/home_page_spec.rb
high_voltage-2.2.1 spec/requests/home_page_spec.rb
high_voltage-2.2.0 spec/requests/home_page_spec.rb