spec/grape/middleware/auth/strategies_spec.rb in grape-1.3.3 vs spec/grape/middleware/auth/strategies_spec.rb in grape-1.4.0
- old
+ new
@@ -34,10 +34,10 @@
context 'Digest MD5 Auth' do
RSpec::Matchers.define :be_challenge do
match do |actual_response|
actual_response.status == 401 &&
- actual_response['WWW-Authenticate'] =~ /^Digest / &&
+ actual_response['WWW-Authenticate'].start_with?('Digest ') &&
actual_response.body.empty?
end
end
module StrategiesSpec