Skip to content

Commit 5feca0e

Browse files
committed
formatting
1 parent 89c18d0 commit 5feca0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

middleware/service_broker_rate_limiter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
module CloudFoundry
55
module Middleware
6-
RateLimitEndpoint = Struct.new(:endpoint_pattern, :methods)
6+
RateLimitEndpoint = Struct.new(:endpoint_pattern, :request_methods)
77

88
RATE_LIMITED_ENDPOINTS = [
99
RateLimitEndpoint.new(%r{\A/v2/(service_instances|service_credential_bindings|service_route_bindings)}, %w[PUT POST DELETE PATCH]),

spec/unit/middleware/service_broker_rate_limiter_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ module Middleware
130130
expect(status).to eq(200)
131131

132132
statuses = 2.times.map { middleware.call(user_env).first }
133-
expect(statuses).to match_array([200, 200])
133+
expect(statuses).to contain_exactly(200, 200)
134134
end
135135
end
136136

0 commit comments

Comments
 (0)