Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #2735

Merged
merged 1 commit into from Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions spec/mount_multiple_spec.rb
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
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