From 3b88d40ec1f783d94d74009089f46dd17676b778 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Mon, 1 Apr 2024 14:39:59 +0800 Subject: [PATCH] Fix typos Found via `codespell -S *.ai -L te,ser` --- spec/mount_multiple_spec.rb | 4 ++-- spec/orm/activerecord_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/mount_multiple_spec.rb b/spec/mount_multiple_spec.rb index 0b9a6ee9d..1fd4c6109 100644 --- a/spec/mount_multiple_spec.rb +++ b/spec/mount_multiple_spec.rb @@ -287,7 +287,7 @@ def monkey expect(instance.images.map { |u| u.file.filename }).to eq ['test.jpg'] end - context "when adding a file which has the same filename with the exsting one" do + context "when adding a file which has the same filename with the existing one" do before { FileUtils.cp(file_path('bork.json'), tmp_path('bork.txt')) } after { FileUtils.rm(tmp_path('bork.txt')) } @@ -362,7 +362,7 @@ def monkey expect(instance.images.map(&:identifier)).to eq ['bork.txt'] end - context "when adding a file which has the same filename with the exsting one" do + context "when adding a file which has the same filename with the existing one" do before { FileUtils.cp(file_path('bork.json'), tmp_path('bork.txt')) } after { FileUtils.rm(tmp_path('bork.txt')) } diff --git a/spec/orm/activerecord_spec.rb b/spec/orm/activerecord_spec.rb index 716569389..1e34dc8df 100644 --- a/spec/orm/activerecord_spec.rb +++ b/spec/orm/activerecord_spec.rb @@ -2125,7 +2125,7 @@ def store_dir end end - it "wont affect the duplicated object's saved path" do + it "won't affect the duplicated object's saved path" do @event.image = stub_file('test.jpeg') expect(@event.save).to be_truthy expect(@event.image.current_path).to eq public_path("uploads/event/image/#{@event.id}/test.jpeg")