fixed specs

pull/3222/head
Markus Kahl 9 years ago
parent 8338b7a6e1
commit bd0df07090
  1. 2
      spec/legacy/support/legacy_assertions.rb
  2. 2
      spec/requests/api/v3/authentication_spec.rb

@ -294,7 +294,7 @@ module LegacyAssertionsAndHelpers
context "should not send www authenticate when header accept auth is session #{http_method} #{url}" do
context 'without credentials' do
before do
send(http_method, url, parameters, 'X-Authentication-Scheme' => 'Session')
send(http_method, url, parameters, 'HTTP_X_AUTHENTICATION_SCHEME' => 'Session')
end
it { should respond_with failure_code }
it { should_respond_with_content_type_based_on_url(url) }

@ -101,7 +101,7 @@ describe API::V3, type: :request do
let(:headers) do
auth = basic_auth(username, password.reverse)
auth.merge('X-Authentication-Scheme' => 'Session')
auth.merge('HTTP_X_AUTHENTICATION_SCHEME' => 'Session')
end
before do

Loading…
Cancel
Save