Sha256: f225c10f1fefb6bb01ce64eff1e4efa435b644233dcf6b03019e138db59c8835
Contents?: true
Size: 533 Bytes
Versions: 25
Compression:
Stored size: 533 Bytes
Contents
# frozen_string_literal: true shared_examples_for "a 404 page" do before do allow(Rails.application).to \ receive(:env_config).with(no_args).and_wrap_original do |m, *| m.call.merge( "action_dispatch.show_exceptions" => true, "action_dispatch.show_detailed_exceptions" => false ) end visit target_path end it "leads to a 404" do expect(page).to have_content("The page you're looking for can't be found") expect(page).to have_http_status(:not_found) end end
Version data entries
25 entries across 25 versions & 2 rubygems