From d2e9af69914c9960f32b85aaffdeaa48f6a54d98 Mon Sep 17 00:00:00 2001 From: Herwin Date: Tue, 3 Feb 2026 11:52:43 +0100 Subject: [PATCH] Grammar fixup: it's -> its for possessive form --- language/ensure_spec.rb | 16 ++++++++-------- language/fixtures/super.rb | 2 +- language/singleton_class_spec.rb | 2 +- library/cgi/htmlextension/multipart_form_spec.rb | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/language/ensure_spec.rb b/language/ensure_spec.rb index b76292c007..1b44457f6a 100644 --- a/language/ensure_spec.rb +++ b/language/ensure_spec.rb @@ -6,7 +6,7 @@ ScratchPad.record [] end - it "is executed when an exception is raised in it's corresponding begin block" do + it "is executed when an exception is raised in its corresponding begin block" do -> { begin ScratchPad << :begin @@ -19,7 +19,7 @@ ScratchPad.recorded.should == [:begin, :ensure] end - it "is executed when an exception is raised and rescued in it's corresponding begin block" do + it "is executed when an exception is raised and rescued in its corresponding begin block" do begin ScratchPad << :begin raise "An exception occurred!" @@ -32,7 +32,7 @@ ScratchPad.recorded.should == [:begin, :rescue, :ensure] end - it "is executed even when a symbol is thrown in it's corresponding begin block" do + it "is executed even when a symbol is thrown in its corresponding begin block" do catch(:symbol) do begin ScratchPad << :begin @@ -47,7 +47,7 @@ ScratchPad.recorded.should == [:begin, :ensure] end - it "is executed when nothing is raised or thrown in it's corresponding begin block" do + it "is executed when nothing is raised or thrown in its corresponding begin block" do begin ScratchPad << :begin rescue @@ -256,7 +256,7 @@ class EnsureInClassExample ScratchPad.record [] end - it "is executed when an exception is raised in it's corresponding begin block" do + it "is executed when an exception is raised in its corresponding begin block" do -> { eval(<<-ruby).call lambda do @@ -271,7 +271,7 @@ class EnsureInClassExample ScratchPad.recorded.should == [:begin, :ensure] end - it "is executed when an exception is raised and rescued in it's corresponding begin block" do + it "is executed when an exception is raised and rescued in its corresponding begin block" do eval(<<-ruby).call lambda do ScratchPad << :begin @@ -286,7 +286,7 @@ class EnsureInClassExample ScratchPad.recorded.should == [:begin, :rescue, :ensure] end - it "is executed even when a symbol is thrown in it's corresponding begin block" do + it "is executed even when a symbol is thrown in its corresponding begin block" do catch(:symbol) do eval(<<-ruby).call lambda do @@ -303,7 +303,7 @@ class EnsureInClassExample ScratchPad.recorded.should == [:begin, :ensure] end - it "is executed when nothing is raised or thrown in it's corresponding begin block" do + it "is executed when nothing is raised or thrown in its corresponding begin block" do eval(<<-ruby).call lambda do ScratchPad << :begin diff --git a/language/fixtures/super.rb b/language/fixtures/super.rb index c5bdcf0e40..b6d4218b03 100644 --- a/language/fixtures/super.rb +++ b/language/fixtures/super.rb @@ -266,7 +266,7 @@ def name # Use this so that we can see collect all supers that we see. # One bug that arises is that we call Alias2#name from Alias2#name - # as it's superclass. In that case, either we get a runaway recursion + # as its superclass. In that case, either we get a runaway recursion # super OR we get the return value being [:alias2, :alias2, :alias1] # rather than [:alias2, :alias1]. # diff --git a/language/singleton_class_spec.rb b/language/singleton_class_spec.rb index 45e1f7f3ad..958bf464a7 100644 --- a/language/singleton_class_spec.rb +++ b/language/singleton_class_spec.rb @@ -60,7 +60,7 @@ ClassSpecs::H.singleton_class.singleton_class end - it "for BasicObject has Class as it's superclass" do + it "for BasicObject has Class as its superclass" do BasicObject.singleton_class.superclass.should == Class end diff --git a/library/cgi/htmlextension/multipart_form_spec.rb b/library/cgi/htmlextension/multipart_form_spec.rb index ee1c45b84e..4b56a7abfe 100644 --- a/library/cgi/htmlextension/multipart_form_spec.rb +++ b/library/cgi/htmlextension/multipart_form_spec.rb @@ -11,7 +11,7 @@ end describe "when passed no arguments" do - it "returns a 'form'-element with it's enctype set to multipart" do + it "returns a 'form'-element with its enctype set to multipart" do output = @html.multipart_form output.should equal_element("FORM", { "ENCTYPE" => "multipart/form-data", "METHOD" => "post" }, "") end