lib/rails/auth/rspec/matchers/acl_matchers.rb in rails-auth-3.1.0 vs lib/rails/auth/rspec/matchers/acl_matchers.rb in rails-auth-3.2.0
- old
+ new
@@ -4,10 +4,10 @@
description do
method = env["REQUEST_METHOD"]
credentials = Rails::Auth.credentials(env)
message = "allow #{method}s by "
- return message + "unauthenticated clients" if credentials.count.zero?
+ return "#{message}unauthenticated clients" if credentials.count.zero?
message + credentials.values.map(&:inspect).join(", ")
end
match { |acl| acl.match(env) }