Skip to content

Commit 86193ec

Browse files
authored
Merge pull request #1178 from jbampton/remove-duplicate-words
Remove unneeded duplicate words
2 parents 0eb86e1 + 5ad6d09 commit 86193ec

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

core/complex/equal_value_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
(Complex(real, 0) == @other).should be_true
7777
end
7878

79-
it "returns false when when the imaginary part is not zero" do
79+
it "returns false when the imaginary part is not zero" do
8080
(Complex(3, 1) == @other).should be_false
8181
end
8282
end

core/fiber/raise_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
-> { FiberSpecs::NewFiberToRaise.raise FiberSpecs::CustomError, 'test error' }.should raise_error(FiberSpecs::CustomError, 'test error')
4343
end
4444

45-
it 'accepts error class with with error message and backtrace information' do
45+
it 'accepts error class with error message and backtrace information' do
4646
-> {
4747
FiberSpecs::NewFiberToRaise.raise FiberSpecs::CustomError, 'test error', ['foo', 'boo']
4848
}.should raise_error(FiberSpecs::CustomError) { |e|

core/float/comparison_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def coerce(other)
7272
(-Float::MAX.to_i*2 <=> -infinity_value).should == 1
7373
end
7474

75-
it "returns 0 when self is Infinity and other other is infinite?=1" do
75+
it "returns 0 when self is Infinity and other is infinite?=1" do
7676
obj = Object.new
7777
def obj.infinite?
7878
1

core/hash/element_reference_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
h[[]].should == "baz"
1313
end
1414

15-
it "returns nil as default default value" do
15+
it "returns nil as default value" do
1616
{ 0 => 0 }[5].should == nil
1717
end
1818

core/io/puts_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def @io.write(str)
3333
ScratchPad.recorded.should == "\n"
3434
end
3535

36-
it "writes empty string with a newline when when given nil as multiple args" do
36+
it "writes empty string with a newline when given nil as multiple args" do
3737
@io.puts(nil, nil).should == nil
3838
ScratchPad.recorded.should == "\n\n"
3939
end

core/string/byteslice_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
it_behaves_like :string_slice_range, :byteslice
1818
end
1919

20-
describe "String#byteslice on on non ASCII strings" do
20+
describe "String#byteslice on non ASCII strings" do
2121
it "returns byteslice of unicode strings" do
2222
"\u3042".byteslice(1).should == "\x81".dup.force_encoding("UTF-8")
2323
"\u3042".byteslice(1, 2).should == "\x81\x82".dup.force_encoding("UTF-8")

fixtures/constants.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# variety in class and module configurations, including hierarchy,
1111
# containment, inclusion, singletons and toplevel.
1212
#
13-
# Constants are numbered for for uniqueness. The CS_ prefix is uniformly used
13+
# Constants are numbered for uniqueness. The CS_ prefix is uniformly used
1414
# and is to minimize clashes with other toplevel constants (see e.g. ModuleA
1515
# which is included in Object). Constant values are symbols. A numbered suffix
1616
# is used to distinguish constants with the same name defined in different

language/regexp_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
end
6363
end
6464

65-
it "supports non-paired delimiters delimiters with %r" do
65+
it "supports non-paired delimiters with %r" do
6666
LanguageSpecs.non_paired_delimiters.each do |c|
6767
eval("%r#{c} foo #{c}").should == / foo /
6868
end

language/super_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
SuperSpecs::S4::B.new.foo([],"test").should == ["B#foo(a,test)", "A#foo"]
7171
end
7272

73-
it "raises an error error when super method does not exist" do
73+
it "raises an error when super method does not exist" do
7474
sup = Class.new
7575
sub_normal = Class.new(sup) do
7676
def foo

library/socket/addrinfo/initialize_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@
335335
@sockaddr = ['AF_INET6', 80, 'hostname', '127.0.0.1']
336336
end
337337

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

0 commit comments

Comments
 (0)