# frozen_string_literal: true require "rails_helper" # These examples exist to exercise the view layer end to end - HAML, the asset # pipeline, the layout, form helpers and the session middleware. The rest of the # request specs only assert on redirects, so without these nothing in the suite # would notice if a Rails upgrade broke rendering. RSpec.describe "rendering", type: :request do before do host! Postal::Config.postal.web_hostname end describe "the login page" do it "renders" do get "/login" expect(response).to have_http_status(:ok) expect(response.media_type).to eq "text/html" expect(response.body).to include "