spec/rails/auth/x509/middleware_spec.rb in rails-auth-1.1.0 vs spec/rails/auth/x509/middleware_spec.rb in rails-auth-1.2.0
- old
+ new
@@ -46,10 +46,10 @@
end
it "extracts Rails::Auth::Credential::X509 from a Java::SunSecurityX509::X509CertImpl" do
skip "JRuby only" unless defined?(JRUBY_VERSION)
- _response, env = middleware.call(request.merge(example_key => java_cert))
+ _response, env = middleware.call(request.merge(example_key => [java_cert]))
credential = Rails::Auth.credentials(env).fetch("x509")
expect(credential).to be_a Rails::Auth::X509::Certificate
end
end