Skip to content

Commit

Permalink
Merge pull request #2735 from kianmeng/fix-typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
mshibuya authored Apr 1, 2024
2 parents 1fbb4c7 + 3b88d40 commit aaeaca3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spec/mount_multiple_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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')) }

Expand Down Expand Up @@ -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')) }

Expand Down
2 changes: 1 addition & 1 deletion spec/orm/activerecord_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit aaeaca3

Please sign in to comment.