Sha256: c1394deb962751b267c019caca5672a7d06e81bc75fa29b3451bc3a750d400d4

Contents?: true

Size: 334 Bytes

Versions: 5

Compression:

Stored size: 334 Bytes

Contents

# frozen_string_literal: true

require "rails_helper"

RSpec.feature "Home page", type: :feature do
  describe "when on home page slug" do
    it "redirects to /" do
      home = create(:page, :homepage)

      visit archangel.frontend_page_path(home.path)

      expect(page.current_path).to eq archangel.root_path
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
archangel-0.0.6 spec/features/frontend/homepage_redirect_spec.rb
archangel-0.0.5 spec/features/frontend/homepage_redirect_spec.rb
archangel-0.0.4 spec/features/frontend/homepage_redirect_spec.rb
archangel-0.0.3 spec/features/frontend/homepage_redirect_spec.rb
archangel-0.0.2 spec/features/frontend/homepage_redirect_spec.rb