Skip to content

Commit 1d76321

Browse files
committed
test: actually use the key passed by parameter
this was accidentally using `root_key`, which happens to be exactly the same as the passed argument key in all the test cases using the helper method
1 parent 192ecdb commit 1d76321

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def create_root_certificate(key)
111111

112112
certificate.subject = OpenSSL::X509::Name.new([["CN", common_name]])
113113
certificate.issuer = certificate.subject
114-
certificate.public_key = root_key
114+
certificate.public_key = key
115115
certificate.not_before = Time.now - 1
116116
certificate.not_after = Time.now + 60
117117

0 commit comments

Comments
 (0)