spec/certmeister/base_spec.rb in certmeister-0.0.2 vs spec/certmeister/base_spec.rb in certmeister-0.1.0
- old
+ new
@@ -42,10 +42,10 @@
invalid_request = valid_request.tap { |o| o[:csr] = "a terrible misunderstanding" }
response = ca.sign(invalid_request)
expect(response.error).to eql "invalid CSR (not enough data)"
end
- it "refuses to sign a CSR if the subject does not agree with the request CN" do
+ it "(XXX move this into the policy) refuses to sign a CSR if the subject does not agree with the request CN" do
request = valid_request.tap { |r| r[:cn] = "monkeyface.example.com" }
ca = Certmeister.new(CertmeisterConfigHelper::valid_config)
response = ca.sign(request)
expect(response.error).to eql "CSR subject (axl.hetzner.africa) disagrees with request CN (monkeyface.example.com)"
end