diff options
Diffstat (limited to 'spec/lib/backup')
-rw-r--r-- | spec/lib/backup/database_backup_error_spec.rb | 8 | ||||
-rw-r--r-- | spec/lib/backup/file_backup_error_spec.rb | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/spec/lib/backup/database_backup_error_spec.rb b/spec/lib/backup/database_backup_error_spec.rb index e001f65465c..2745d1540ea 100644 --- a/spec/lib/backup/database_backup_error_spec.rb +++ b/spec/lib/backup/database_backup_error_spec.rb @@ -19,12 +19,12 @@ RSpec.describe Backup::DatabaseBackupError do it { is_expected.to respond_to :db_file_name } it 'expects exception message to include database file' do - expect(subject.message).to include("#{db_file_name}") + expect(subject.message).to include(db_file_name.to_s) end it 'expects exception message to include database paths being back-up' do - expect(subject.message).to include("#{config[:host]}") - expect(subject.message).to include("#{config[:port]}") - expect(subject.message).to include("#{config[:database]}") + expect(subject.message).to include(config[:host].to_s) + expect(subject.message).to include(config[:port].to_s) + expect(subject.message).to include(config[:database].to_s) end end diff --git a/spec/lib/backup/file_backup_error_spec.rb b/spec/lib/backup/file_backup_error_spec.rb index bb174bbe4a0..948e15b7e5c 100644 --- a/spec/lib/backup/file_backup_error_spec.rb +++ b/spec/lib/backup/file_backup_error_spec.rb @@ -13,11 +13,11 @@ RSpec.describe Backup::FileBackupError do it { is_expected.to respond_to :backup_tarball } it 'expects exception message to include file backup path location' do - expect(subject.message).to include("#{subject.backup_tarball}") + expect(subject.message).to include(subject.backup_tarball.to_s) end it 'expects exception message to include file being back-up' do - expect(subject.message).to include("#{subject.app_files_dir}") + expect(subject.message).to include(subject.app_files_dir.to_s) end end |