Sha256: 9b1b90df9a9bc8ec9a2617ceec78db1e1d048d3547eff90332d95f026f1721fd

Contents?: true

Size: 268 Bytes

Versions: 184

Compression:

Stored size: 268 Bytes

Contents

RSpec::Matchers.define :be_challenge do
  match do |actual_response|
    actual_response.status == 401 &&
    actual_response['WWW-Authenticate'] =~ /^Digest / &&
    actual_response.body.empty?
  end

  description do
    "a HTTP Digest challenge response"
  end
end

Version data entries

184 entries across 158 versions & 37 rubygems

Version Path
tdiary-5.0.5 vendor/bundle/gems/rack-test-0.6.3/spec/support/matchers/challenge.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/rack-test-0.6.3/spec/support/matchers/challenge.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/rack-test-0.6.3/spec/support/matchers/challenge.rb
tdiary-5.0.4 vendor/bundle/gems/rack-test-0.6.3/spec/support/matchers/challenge.rb
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/rack-test-0.6.3/spec/support/matchers/challenge.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-test-0.6.3/spec/support/matchers/challenge.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-test-0.6.3/spec/support/matchers/challenge.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-test-0.6.3/spec/support/matchers/challenge.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-test-0.6.3/spec/support/matchers/challenge.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-test-0.6.3/spec/support/matchers/challenge.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-test-0.6.3/spec/support/matchers/challenge.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-test-0.6.3/spec/support/matchers/challenge.rb
abaci-0.3.0 vendor/bundle/gems/rack-test-0.6.3/spec/support/matchers/challenge.rb
arcabouco-0.2.13 vendor/bundle/gems/rack-test-0.6.3/spec/support/matchers/challenge.rb
tdiary-5.0.2 vendor/bundle/gems/rack-test-0.6.3/spec/support/matchers/challenge.rb
tdiary-5.0.1 vendor/bundle/gems/rack-test-0.6.3/spec/support/matchers/challenge.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-test-0.6.3/spec/support/matchers/challenge.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/rack-test-0.6.3/spec/support/matchers/challenge.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/rack-test-0.6.3/spec/support/matchers/challenge.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/rack-test-0.6.3/spec/support/matchers/challenge.rb