From 12d0ed63c0298fa9294c37f738a1ee2fcfc605d7 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Thu, 19 Sep 2024 17:28:49 +0200 Subject: [PATCH] Fix typo --- lib/legacy_converter.rb | 2 +- spec/lib/app_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/legacy_converter.rb b/lib/legacy_converter.rb index 8ee4692..6fcde99 100644 --- a/lib/legacy_converter.rb +++ b/lib/legacy_converter.rb @@ -44,7 +44,7 @@ def store_file(filename, content) # Loads and returns a legacy converted file def get_file(filename) file_path = legacy_dir.join(filename) - raise "File does not exists" unless file_path.file? + raise "File does not exist" unless file_path.file? file_path.read end diff --git a/spec/lib/app_spec.rb b/spec/lib/app_spec.rb index da3a131..c9cf546 100644 --- a/spec/lib/app_spec.rb +++ b/spec/lib/app_spec.rb @@ -387,7 +387,7 @@ def show_backtrace(response) expect(last_response.content_type).to eq 'application/json' body = JSON.parse(last_response.body) expect(body).to be_a Hash - expect(body['error']).to eq 'File does not exists' + expect(body['error']).to eq 'File does not exist' end end end