Sha256: 9bd536ac1c061619c6815eeafef0e85967a76e9f0b120655d31e1cea654e1525

Contents?: true

Size: 351 Bytes

Versions: 1

Compression:

Stored size: 351 Bytes

Contents

# frozen_string_literal: true

require "rails_helper"

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

      visit archangel.frontend_page_path(resource.path)

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
archangel-0.3.0 spec/features/frontend/pages/homepage_redirect_spec.rb