spec/rails/auth/error_page/middleware_spec.rb in rails-auth-2.1.4 vs spec/rails/auth/error_page/middleware_spec.rb in rails-auth-2.2.0
- old
+ new
@@ -1,4 +1,6 @@
+# frozen_string_literal: true
+
RSpec.describe Rails::Auth::ErrorPage::Middleware do
let(:request) { Rack::MockRequest.env_for("https://www.example.com") }
let(:error_page) { "<h1> Unauthorized!!! </h1>" }
subject(:middleware) { described_class.new(app, page_body: error_page) }