Skip to content

Commit

Permalink
Merge pull request #1178 from jbampton/remove-duplicate-words
Browse files Browse the repository at this point in the history
Remove unneeded duplicate words
  • Loading branch information
andrykonchin authored Jul 4, 2024
2 parents 0eb86e1 + 5ad6d09 commit 86193ec
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion core/complex/equal_value_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
(Complex(real, 0) == @other).should be_true
end

it "returns false when when the imaginary part is not zero" do
it "returns false when the imaginary part is not zero" do
(Complex(3, 1) == @other).should be_false
end
end
Expand Down
2 changes: 1 addition & 1 deletion core/fiber/raise_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
-> { FiberSpecs::NewFiberToRaise.raise FiberSpecs::CustomError, 'test error' }.should raise_error(FiberSpecs::CustomError, 'test error')
end

it 'accepts error class with with error message and backtrace information' do
it 'accepts error class with error message and backtrace information' do
-> {
FiberSpecs::NewFiberToRaise.raise FiberSpecs::CustomError, 'test error', ['foo', 'boo']
}.should raise_error(FiberSpecs::CustomError) { |e|
Expand Down
2 changes: 1 addition & 1 deletion core/float/comparison_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def coerce(other)
(-Float::MAX.to_i*2 <=> -infinity_value).should == 1
end

it "returns 0 when self is Infinity and other other is infinite?=1" do
it "returns 0 when self is Infinity and other is infinite?=1" do
obj = Object.new
def obj.infinite?
1
Expand Down
2 changes: 1 addition & 1 deletion core/hash/element_reference_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
h[[]].should == "baz"
end

it "returns nil as default default value" do
it "returns nil as default value" do
{ 0 => 0 }[5].should == nil
end

Expand Down
2 changes: 1 addition & 1 deletion core/io/puts_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def @io.write(str)
ScratchPad.recorded.should == "\n"
end

it "writes empty string with a newline when when given nil as multiple args" do
it "writes empty string with a newline when given nil as multiple args" do
@io.puts(nil, nil).should == nil
ScratchPad.recorded.should == "\n\n"
end
Expand Down
2 changes: 1 addition & 1 deletion core/string/byteslice_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
it_behaves_like :string_slice_range, :byteslice
end

describe "String#byteslice on on non ASCII strings" do
describe "String#byteslice on non ASCII strings" do
it "returns byteslice of unicode strings" do
"\u3042".byteslice(1).should == "\x81".dup.force_encoding("UTF-8")
"\u3042".byteslice(1, 2).should == "\x81\x82".dup.force_encoding("UTF-8")
Expand Down
2 changes: 1 addition & 1 deletion fixtures/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# variety in class and module configurations, including hierarchy,
# containment, inclusion, singletons and toplevel.
#
# Constants are numbered for for uniqueness. The CS_ prefix is uniformly used
# Constants are numbered for uniqueness. The CS_ prefix is uniformly used
# and is to minimize clashes with other toplevel constants (see e.g. ModuleA
# which is included in Object). Constant values are symbols. A numbered suffix
# is used to distinguish constants with the same name defined in different
Expand Down
2 changes: 1 addition & 1 deletion language/regexp_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
end
end

it "supports non-paired delimiters delimiters with %r" do
it "supports non-paired delimiters with %r" do
LanguageSpecs.non_paired_delimiters.each do |c|
eval("%r#{c} foo #{c}").should == / foo /
end
Expand Down
2 changes: 1 addition & 1 deletion language/super_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
SuperSpecs::S4::B.new.foo([],"test").should == ["B#foo(a,test)", "A#foo"]
end

it "raises an error error when super method does not exist" do
it "raises an error when super method does not exist" do
sup = Class.new
sub_normal = Class.new(sup) do
def foo
Expand Down
2 changes: 1 addition & 1 deletion library/socket/addrinfo/initialize_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@
@sockaddr = ['AF_INET6', 80, 'hostname', '127.0.0.1']
end

it "raises SocketError when using any Socket constant except except AF_INET(6)/PF_INET(6)" do
it "raises SocketError when using any Socket constant except AF_INET(6)/PF_INET(6)" do
Socket.constants.grep(/(^AF_|^PF_)(?!INET)/).each do |constant|
value = Socket.const_get(constant)
-> {
Expand Down

0 comments on commit 86193ec

Please sign in to comment.