lib/rails/auth/rspec/matchers/acl_matchers.rb in rails-auth-2.1.4 vs lib/rails/auth/rspec/matchers/acl_matchers.rb in rails-auth-2.2.0
- old
+ new
@@ -1,4 +1,6 @@
+# frozen_string_literal: true
+
RSpec::Matchers.define(:permit) do |env|
description do
method = env["REQUEST_METHOD"]
credentials = Rails::Auth.credentials(env)
message = "allow #{method}s by "