Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/backup/database_backup_error_spec.rb')
-rw-r--r--spec/lib/backup/database_backup_error_spec.rb8
1 files changed, 4 insertions, 4 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