diff --git a/src/bosh-nats-sync/spec/nats_sync/users_sync_spec.rb b/src/bosh-nats-sync/spec/nats_sync/users_sync_spec.rb index fade3b2341..8c4faa87e7 100644 --- a/src/bosh-nats-sync/spec/nats_sync/users_sync_spec.rb +++ b/src/bosh-nats-sync/spec/nats_sync/users_sync_spec.rb @@ -35,6 +35,18 @@ module NATSSync let(:client_id) { 'client_id' } let(:client_secret) { 'client_secret' } let(:ca_cert) { 'ca_cert' } + let(:sample_director_subject) do + file = Tempfile.new('director_subject') + file.write(director_subject) + file.flush + file.path + end + let(:sample_hm_subject) do + file = Tempfile.new('hm_subject') + file.write(hm_subject) + file.flush + file.path + end let(:director_subject_file) { sample_director_subject } let(:hm_subject_file) { sample_hm_subject } let(:director_subject) { 'C=USA, O=Cloud Foundry, CN=default.director.bosh-internal' } @@ -316,7 +328,7 @@ module NATSSync end end - describe 'when there are running vms in Bosh and there are is no subject information for hm or the director' do + describe 'when there are running vms in Bosh and there is no subject information for hm or the director' do let(:director_subject_file) { '/file/nonexistent1' } let(:hm_subject_file) { '/file/nonexistent2' }