lib/rails/auth/rspec/matchers/acl_matchers.rb in rails-auth-2.2.0 vs lib/rails/auth/rspec/matchers/acl_matchers.rb in rails-auth-2.2.1
- old
+ new
@@ -4,12 +4,12 @@
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(", ")
+ message + credentials.values.map(&:inspect).join(", ")
end
match { |acl| acl.match(env) }
end