Skip to content

Commit 9d5d708

Browse files
Apply suggested fix to src/bosh-nats-sync/spec/nats_sync/users_sync_spec.rb from Copilot Autofix
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent 0b4d47c commit 9d5d708

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/bosh-nats-sync/spec/nats_sync/users_sync_spec.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@ module NATSSync
3535
let(:client_id) { 'client_id' }
3636
let(:client_secret) { 'client_secret' }
3737
let(:ca_cert) { 'ca_cert' }
38+
let(:sample_director_subject) do
39+
file = Tempfile.new('director_subject')
40+
file.write(director_subject)
41+
file.flush
42+
file.path
43+
end
44+
let(:sample_hm_subject) do
45+
file = Tempfile.new('hm_subject')
46+
file.write(hm_subject)
47+
file.flush
48+
file.path
49+
end
3850
let(:director_subject_file) { sample_director_subject }
3951
let(:hm_subject_file) { sample_hm_subject }
4052
let(:director_subject) { 'C=USA, O=Cloud Foundry, CN=default.director.bosh-internal' }

0 commit comments

Comments
 (0)