summaryrefslogtreecommitdiff
path: root/spec/ruby/library
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-02-07 16:35:33 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-02-07 16:35:33 +0000
commit75334db3c6479ea3cd7462d36ca5464d386f9c72 (patch)
treec97df2c7aa02f3d0e65524890924f1b294871073 /spec/ruby/library
parent5c7c6763f6cf7b4face107735071c5470e835476 (diff)
Update to ruby/spec@6cf8ebe
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/library')
-rw-r--r--spec/ruby/library/bigdecimal/divmod_spec.rb2
-rw-r--r--spec/ruby/library/bigdecimal/sqrt_spec.rb2
-rw-r--r--spec/ruby/library/cgi/rfc1123_date_spec.rb2
-rw-r--r--spec/ruby/library/datetime/to_date_spec.rb2
-rw-r--r--spec/ruby/library/datetime/to_s_spec.rb2
-rw-r--r--spec/ruby/library/datetime/to_time_spec.rb2
-rw-r--r--spec/ruby/library/delegate/delegator/frozen_spec.rb2
-rw-r--r--spec/ruby/library/getoptlong/terminate_spec.rb2
-rw-r--r--spec/ruby/library/logger/logger/new_spec.rb2
-rw-r--r--spec/ruby/library/matrix/eigenvalue_decomposition/eigenvalues_spec.rb2
-rw-r--r--spec/ruby/library/matrix/eigenvalue_decomposition/eigenvector_matrix_spec.rb2
-rw-r--r--spec/ruby/library/matrix/eigenvalue_decomposition/eigenvectors_spec.rb2
-rw-r--r--spec/ruby/library/net/ftp/quit_spec.rb2
-rw-r--r--spec/ruby/library/net/http/http/proxy_class_spec.rb2
-rw-r--r--spec/ruby/library/net/http/httpresponse/read_body_spec.rb2
-rw-r--r--spec/ruby/library/openstruct/frozen_spec.rb2
-rw-r--r--spec/ruby/library/rexml/attribute/initialize_spec.rb2
-rw-r--r--spec/ruby/library/securerandom/hex_spec.rb2
-rw-r--r--spec/ruby/library/set/enumerable/to_set_spec.rb2
-rw-r--r--spec/ruby/library/set/exclusion_spec.rb2
-rw-r--r--spec/ruby/library/set/sortedset/exclusion_spec.rb2
-rw-r--r--spec/ruby/library/socket/addrinfo/ipv4_multicast_spec.rb2
-rw-r--r--spec/ruby/library/socket/ancillarydata/cmsg_is_spec.rb2
-rw-r--r--spec/ruby/library/socket/basicsocket/getsockname_spec.rb2
-rw-r--r--spec/ruby/library/socket/ipsocket/getaddress_spec.rb10
-rw-r--r--spec/ruby/library/socket/unixsocket/peeraddr_spec.rb2
-rw-r--r--spec/ruby/library/syslog/log_spec.rb2
-rw-r--r--spec/ruby/library/tempfile/initialize_spec.rb2
-rw-r--r--spec/ruby/library/tmpdir/dir/mktmpdir_spec.rb2
-rw-r--r--spec/ruby/library/uri/plus_spec.rb2
-rw-r--r--spec/ruby/library/weakref/weakref_alive_spec.rb2
-rw-r--r--spec/ruby/library/yaml/parse_file_spec.rb6
-rw-r--r--spec/ruby/library/zlib/gzipreader/read_spec.rb4
33 files changed, 38 insertions, 42 deletions
diff --git a/spec/ruby/library/bigdecimal/divmod_spec.rb b/spec/ruby/library/bigdecimal/divmod_spec.rb
index 3a18b150dda..3946d6f2087 100644
--- a/spec/ruby/library/bigdecimal/divmod_spec.rb
+++ b/spec/ruby/library/bigdecimal/divmod_spec.rb
@@ -163,7 +163,7 @@ describe "BigDecimal#divmod" do
end
end
- it "returns an array of two zero if the diviend is zero" do
+ it "returns an array of two zero if the dividend is zero" do
@zeroes.each do |zero|
@regular_vals.each do |val|
zero.divmod(val).should == [@zero, @zero]
diff --git a/spec/ruby/library/bigdecimal/sqrt_spec.rb b/spec/ruby/library/bigdecimal/sqrt_spec.rb
index 06a83482036..75182fcbc81 100644
--- a/spec/ruby/library/bigdecimal/sqrt_spec.rb
+++ b/spec/ruby/library/bigdecimal/sqrt_spec.rb
@@ -87,7 +87,7 @@ describe "BigDecimal#sqrt" do
}.should raise_error(FloatDomainError)
end
- it "returns positive infitinity for infinity" do
+ it "returns positive infinity for infinity" do
@infinity.sqrt(1).should == @infinity
end
diff --git a/spec/ruby/library/cgi/rfc1123_date_spec.rb b/spec/ruby/library/cgi/rfc1123_date_spec.rb
index d94c026d9f2..6904eeabaa9 100644
--- a/spec/ruby/library/cgi/rfc1123_date_spec.rb
+++ b/spec/ruby/library/cgi/rfc1123_date_spec.rb
@@ -1,7 +1,7 @@
require_relative '../../spec_helper'
require 'cgi'
-describe "CGI.rfc1123_date when passsed Time" do
+describe "CGI.rfc1123_date when passed Time" do
it "returns the passed Time formatted in RFC1123 ('Sat, 01 Dec 2007 15:56:42 GMT')" do
input = Time.at(1196524602)
expected = 'Sat, 01 Dec 2007 15:56:42 GMT'
diff --git a/spec/ruby/library/datetime/to_date_spec.rb b/spec/ruby/library/datetime/to_date_spec.rb
index a1b93305b87..48c05e7fed6 100644
--- a/spec/ruby/library/datetime/to_date_spec.rb
+++ b/spec/ruby/library/datetime/to_date_spec.rb
@@ -30,7 +30,7 @@ describe "DateTime#to_date" do
it "maintains the same julian day regardless of local time or zone" do
dt = DateTime.new(2012, 12, 24, 12, 23, 00, '+05:00')
- with_timezone("Pactific/Pago_Pago", -11) do
+ with_timezone("Pacific/Pago_Pago", -11) do
dt.to_date.jd.should == dt.jd
end
end
diff --git a/spec/ruby/library/datetime/to_s_spec.rb b/spec/ruby/library/datetime/to_s_spec.rb
index c6b5bd90be3..175fb807f41 100644
--- a/spec/ruby/library/datetime/to_s_spec.rb
+++ b/spec/ruby/library/datetime/to_s_spec.rb
@@ -10,7 +10,7 @@ describe "DateTime#to_s" do
it "maintains timezone regardless of local time" do
dt = DateTime.new(2012, 12, 24, 1, 2, 3, "+03:00")
- with_timezone("Pactific/Pago_Pago", -11) do
+ with_timezone("Pacific/Pago_Pago", -11) do
dt.to_s.should == "2012-12-24T01:02:03+03:00"
end
end
diff --git a/spec/ruby/library/datetime/to_time_spec.rb b/spec/ruby/library/datetime/to_time_spec.rb
index 1844cbd7eb8..3bda369ca7c 100644
--- a/spec/ruby/library/datetime/to_time_spec.rb
+++ b/spec/ruby/library/datetime/to_time_spec.rb
@@ -22,7 +22,7 @@ describe "DateTime#to_time" do
it "preserves the same time regardless of local time or zone" do
date = DateTime.new(2012, 12, 24, 12, 23, 00, '+03:00')
- with_timezone("Pactific/Pago_Pago", -11) do
+ with_timezone("Pacific/Pago_Pago", -11) do
time = date.to_time
time.utc_offset.should == 3 * 3600
diff --git a/spec/ruby/library/delegate/delegator/frozen_spec.rb b/spec/ruby/library/delegate/delegator/frozen_spec.rb
index ca83c5f77c0..bc91259b08a 100644
--- a/spec/ruby/library/delegate/delegator/frozen_spec.rb
+++ b/spec/ruby/library/delegate/delegator/frozen_spec.rb
@@ -17,7 +17,7 @@ describe "Delegator when frozen" do
@delegate.frozen?.should be_true
end
- it "is not writeable" do
+ it "is not writable" do
lambda{ @delegate[0] += 2 }.should raise_error( RuntimeError )
end
diff --git a/spec/ruby/library/getoptlong/terminate_spec.rb b/spec/ruby/library/getoptlong/terminate_spec.rb
index 287945fe9bf..a12d1df2ef6 100644
--- a/spec/ruby/library/getoptlong/terminate_spec.rb
+++ b/spec/ruby/library/getoptlong/terminate_spec.rb
@@ -19,7 +19,7 @@ describe "GetoptLong#terminate" do
end
end
- it "returns self when option processsing is terminated" do
+ it "returns self when option processing is terminated" do
@opts.terminate.should == @opts
end
diff --git a/spec/ruby/library/logger/logger/new_spec.rb b/spec/ruby/library/logger/logger/new_spec.rb
index cf965ac03bf..3a83968eb1a 100644
--- a/spec/ruby/library/logger/logger/new_spec.rb
+++ b/spec/ruby/library/logger/logger/new_spec.rb
@@ -37,7 +37,7 @@ describe "Logger#new" do
lambda { Logger.new(@log_file, 1).close }.should_not raise_error
end
- it "receivs a maximum logfile size as third argument" do
+ it "receives a maximum logfile size as third argument" do
# This should create 2 small log files, logfile_test and logfile_test.0
# in /tmp, each one with a different message.
path = tmp("logfile_test.log")
diff --git a/spec/ruby/library/matrix/eigenvalue_decomposition/eigenvalues_spec.rb b/spec/ruby/library/matrix/eigenvalue_decomposition/eigenvalues_spec.rb
index 8d47bed5e67..7552b7616c5 100644
--- a/spec/ruby/library/matrix/eigenvalue_decomposition/eigenvalues_spec.rb
+++ b/spec/ruby/library/matrix/eigenvalue_decomposition/eigenvalues_spec.rb
@@ -8,7 +8,7 @@ describe "Matrix::EigenvalueDecomposition#eigenvalues" do
[ Complex(1, -1), Complex(1, 1)]
end
- it "returns an array of real eigenvalues for a symetric matrix" do
+ it "returns an array of real eigenvalues for a symmetric matrix" do
Matrix[[1, 2],
[2, 1]].eigensystem.eigenvalues.sort.map!{|x| x.round(10)}.should ==
[ -1, 3 ]
diff --git a/spec/ruby/library/matrix/eigenvalue_decomposition/eigenvector_matrix_spec.rb b/spec/ruby/library/matrix/eigenvalue_decomposition/eigenvector_matrix_spec.rb
index 38217ca3735..09f229ee15c 100644
--- a/spec/ruby/library/matrix/eigenvalue_decomposition/eigenvector_matrix_spec.rb
+++ b/spec/ruby/library/matrix/eigenvalue_decomposition/eigenvector_matrix_spec.rb
@@ -10,7 +10,7 @@ describe "Matrix::EigenvalueDecomposition#eigenvector_matrix" do
[Complex(0, 1), Complex(0, -1)]]
end
- it "returns an real eigenvector matrix for a symetric matrix" do
+ it "returns an real eigenvector matrix for a symmetric matrix" do
# Fix me: should test for linearity, not for equality
Matrix[[1, 2],
[2, 1]].eigensystem.eigenvector_matrix.should ==
diff --git a/spec/ruby/library/matrix/eigenvalue_decomposition/eigenvectors_spec.rb b/spec/ruby/library/matrix/eigenvalue_decomposition/eigenvectors_spec.rb
index 968d02e27c9..2b6ce74ea83 100644
--- a/spec/ruby/library/matrix/eigenvalue_decomposition/eigenvectors_spec.rb
+++ b/spec/ruby/library/matrix/eigenvalue_decomposition/eigenvectors_spec.rb
@@ -11,7 +11,7 @@ describe "Matrix::EigenvalueDecomposition#eigenvectors" do
]
end
- it "returns an array of real eigenvectors for a symetric matrix" do
+ it "returns an array of real eigenvectors for a symmetric matrix" do
# Fix me: should test for linearity, not for equality
Matrix[[1, 2],
[2, 1]].eigensystem.eigenvectors.should ==
diff --git a/spec/ruby/library/net/ftp/quit_spec.rb b/spec/ruby/library/net/ftp/quit_spec.rb
index fdc3a2f7951..8e3cb28b901 100644
--- a/spec/ruby/library/net/ftp/quit_spec.rb
+++ b/spec/ruby/library/net/ftp/quit_spec.rb
@@ -22,7 +22,7 @@ describe "Net::FTP#quit" do
@ftp.last_response.should == "221 OK, bye\n"
end
- it "does not close the socket automagically" do
+ it "does not close the socket automatically" do
@ftp.quit
@ftp.closed?.should be_false
end
diff --git a/spec/ruby/library/net/http/http/proxy_class_spec.rb b/spec/ruby/library/net/http/http/proxy_class_spec.rb
index 2aab804ed32..2d32a39f013 100644
--- a/spec/ruby/library/net/http/http/proxy_class_spec.rb
+++ b/spec/ruby/library/net/http/http/proxy_class_spec.rb
@@ -2,7 +2,7 @@ require_relative '../../../../spec_helper'
require 'net/http'
describe "Net::HTTP.proxy_class?" do
- it "returns true if sels is a class created with Net::HTTP.Proxy" do
+ it "returns true if self is a class created with Net::HTTP.Proxy" do
Net::HTTP.proxy_class?.should be_false
Net::HTTP.Proxy("localhost").proxy_class?.should be_true
end
diff --git a/spec/ruby/library/net/http/httpresponse/read_body_spec.rb b/spec/ruby/library/net/http/httpresponse/read_body_spec.rb
index 500155eb5be..a050eca5942 100644
--- a/spec/ruby/library/net/http/httpresponse/read_body_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/read_body_spec.rb
@@ -76,7 +76,7 @@ describe "Net::HTTPResponse#read_body" do
end
describe "when passed buffer and block" do
- it "rauses an ArgumentError" do
+ it "raises an ArgumentError" do
@res.reading_body(@socket, true) do
lambda { @res.read_body("") {} }.should raise_error(ArgumentError)
end
diff --git a/spec/ruby/library/openstruct/frozen_spec.rb b/spec/ruby/library/openstruct/frozen_spec.rb
index 27931fe5aca..142adcb278c 100644
--- a/spec/ruby/library/openstruct/frozen_spec.rb
+++ b/spec/ruby/library/openstruct/frozen_spec.rb
@@ -14,7 +14,7 @@ describe "OpenStruct.new when frozen" do
@os.name.should == "John Smith"
end
- it "is not writeable" do
+ it "is not writable" do
lambda{ @os.age = 42 }.should raise_error( RuntimeError )
end
diff --git a/spec/ruby/library/rexml/attribute/initialize_spec.rb b/spec/ruby/library/rexml/attribute/initialize_spec.rb
index 3452b6c864b..9f5e30c517c 100644
--- a/spec/ruby/library/rexml/attribute/initialize_spec.rb
+++ b/spec/ruby/library/rexml/attribute/initialize_spec.rb
@@ -19,7 +19,7 @@ describe "REXML::Attribute#initialize" do
copy.should == @name
end
- it "recives a parent node" do
+ it "receives a parent node" do
last_name = REXML::Attribute.new("last_name", "McBrain", @e)
last_name.element.should == @e
diff --git a/spec/ruby/library/securerandom/hex_spec.rb b/spec/ruby/library/securerandom/hex_spec.rb
index 1e647edebc9..525b4d1e35e 100644
--- a/spec/ruby/library/securerandom/hex_spec.rb
+++ b/spec/ruby/library/securerandom/hex_spec.rb
@@ -3,7 +3,7 @@ require_relative '../../spec_helper'
require 'securerandom'
describe "SecureRandom.hex" do
- it "generates a random hex string of length twice the specified argement" do
+ it "generates a random hex string of length twice the specified argument" do
(1..64).each do |idx|
hex = SecureRandom.hex(idx)
hex.should be_kind_of(String)
diff --git a/spec/ruby/library/set/enumerable/to_set_spec.rb b/spec/ruby/library/set/enumerable/to_set_spec.rb
index 6d81710a2f0..0f5504fef2a 100644
--- a/spec/ruby/library/set/enumerable/to_set_spec.rb
+++ b/spec/ruby/library/set/enumerable/to_set_spec.rb
@@ -1,7 +1,7 @@
require_relative '../../../spec_helper'
require 'set'
-describe "Emumerable#to_set" do
+describe "Enumerable#to_set" do
it "returns a new Set created from self" do
[1, 2, 3].to_set.should == Set[1, 2, 3]
{a: 1, b: 2}.to_set.should == Set[[:b, 2], [:a, 1]]
diff --git a/spec/ruby/library/set/exclusion_spec.rb b/spec/ruby/library/set/exclusion_spec.rb
index 407aa70032b..c9fa0e287e4 100644
--- a/spec/ruby/library/set/exclusion_spec.rb
+++ b/spec/ruby/library/set/exclusion_spec.rb
@@ -6,7 +6,7 @@ describe "Set#^" do
@set = Set[1, 2, 3, 4]
end
- it "returns a new Set containing elements that are not in both self and the passed Enumberable" do
+ it "returns a new Set containing elements that are not in both self and the passed Enumerable" do
(@set ^ Set[3, 4, 5]).should == Set[1, 2, 5]
(@set ^ [3, 4, 5]).should == Set[1, 2, 5]
end
diff --git a/spec/ruby/library/set/sortedset/exclusion_spec.rb b/spec/ruby/library/set/sortedset/exclusion_spec.rb
index 59f7615e839..59f9f1dfd8a 100644
--- a/spec/ruby/library/set/sortedset/exclusion_spec.rb
+++ b/spec/ruby/library/set/sortedset/exclusion_spec.rb
@@ -6,7 +6,7 @@ describe "SortedSet#^" do
@set = SortedSet[1, 2, 3, 4]
end
- it "returns a new SortedSet containing elements that are not in both self and the passed Enumberable" do
+ it "returns a new SortedSet containing elements that are not in both self and the passed Enumerable" do
(@set ^ SortedSet[3, 4, 5]).should == SortedSet[1, 2, 5]
(@set ^ [3, 4, 5]).should == SortedSet[1, 2, 5]
end
diff --git a/spec/ruby/library/socket/addrinfo/ipv4_multicast_spec.rb b/spec/ruby/library/socket/addrinfo/ipv4_multicast_spec.rb
index 81a68d3d138..bdd14c1b000 100644
--- a/spec/ruby/library/socket/addrinfo/ipv4_multicast_spec.rb
+++ b/spec/ruby/library/socket/addrinfo/ipv4_multicast_spec.rb
@@ -7,7 +7,7 @@ describe "Addrinfo#ipv4_multicast?" do
Addrinfo.ip('239.255.255.250').ipv4_multicast?.should == true
end
- it 'returns false for a regular addrss' do
+ it 'returns false for a regular address' do
Addrinfo.ip('8.8.8.8').ipv4_multicast?.should == false
end
diff --git a/spec/ruby/library/socket/ancillarydata/cmsg_is_spec.rb b/spec/ruby/library/socket/ancillarydata/cmsg_is_spec.rb
index bf93cd977e1..50763e28b1d 100644
--- a/spec/ruby/library/socket/ancillarydata/cmsg_is_spec.rb
+++ b/spec/ruby/library/socket/ancillarydata/cmsg_is_spec.rb
@@ -25,7 +25,7 @@ with_feature :ancillary_data do
@data.cmsg_is?(:SOCKET, :RIGHTS).should == false
end
- it 'raises SocketError when comparign with :IPV6 and :RIGHTS' do
+ it 'raises SocketError when comparing with :IPV6 and :RIGHTS' do
lambda { @data.cmsg_is?(:IPV6, :RIGHTS) }.should raise_error(SocketError)
end
end
diff --git a/spec/ruby/library/socket/basicsocket/getsockname_spec.rb b/spec/ruby/library/socket/basicsocket/getsockname_spec.rb
index a2c5980a9ed..b33db088b6d 100644
--- a/spec/ruby/library/socket/basicsocket/getsockname_spec.rb
+++ b/spec/ruby/library/socket/basicsocket/getsockname_spec.rb
@@ -7,7 +7,7 @@ describe "Socket::BasicSocket#getsockname" do
@socket.close
end
- it "returns the sockaddr associacted with the socket" do
+ it "returns the sockaddr associated with the socket" do
@socket = TCPServer.new("127.0.0.1", 0)
sockaddr = Socket.unpack_sockaddr_in(@socket.getsockname)
sockaddr.should == [@socket.addr[1], "127.0.0.1"]
diff --git a/spec/ruby/library/socket/ipsocket/getaddress_spec.rb b/spec/ruby/library/socket/ipsocket/getaddress_spec.rb
index 2ee35af5b56..8e14707d4f3 100644
--- a/spec/ruby/library/socket/ipsocket/getaddress_spec.rb
+++ b/spec/ruby/library/socket/ipsocket/getaddress_spec.rb
@@ -17,11 +17,9 @@ describe "Socket::IPSocket#getaddress" do
# There is no way to make this fail-proof on all machines, because
# DNS servers like opendns return A records for ANY host, including
# traditionally invalidly named ones.
- quarantine! do
- it "raises an error on unknown hostnames" do
- lambda {
- IPSocket.getaddress("rubyspecdoesntexist.fallingsnow.net")
- }.should raise_error(SocketError)
- end
+ it "raises an error on unknown hostnames" do
+ lambda {
+ IPSocket.getaddress("rubyspecdoesntexist.fallingsnow.net")
+ }.should raise_error(SocketError)
end
end
diff --git a/spec/ruby/library/socket/unixsocket/peeraddr_spec.rb b/spec/ruby/library/socket/unixsocket/peeraddr_spec.rb
index ec57b409705..e39c8a05703 100644
--- a/spec/ruby/library/socket/unixsocket/peeraddr_spec.rb
+++ b/spec/ruby/library/socket/unixsocket/peeraddr_spec.rb
@@ -16,7 +16,7 @@ describe "UNIXSocket#peeraddr" do
SocketSpecs.rm_socket @path
end
- it "returns the address familly and path of the server end of the connection" do
+ it "returns the address family and path of the server end of the connection" do
@client.peeraddr.should == ["AF_UNIX", @path]
end
diff --git a/spec/ruby/library/syslog/log_spec.rb b/spec/ruby/library/syslog/log_spec.rb
index f92f69ea927..727fffbadfa 100644
--- a/spec/ruby/library/syslog/log_spec.rb
+++ b/spec/ruby/library/syslog/log_spec.rb
@@ -23,7 +23,7 @@ platform_is_not :windows do
}.should output_to_fd("rubyspec: Hello\nrubyspec: World\n", $stderr)
end
- it "accepts undefined priorites" do
+ it "accepts undefined priorities" do
lambda {
Syslog.open("rubyspec", Syslog::LOG_PERROR) do |s|
s.log(1337, "Hello")
diff --git a/spec/ruby/library/tempfile/initialize_spec.rb b/spec/ruby/library/tempfile/initialize_spec.rb
index a3614971a11..ad3c2f64370 100644
--- a/spec/ruby/library/tempfile/initialize_spec.rb
+++ b/spec/ruby/library/tempfile/initialize_spec.rb
@@ -28,7 +28,7 @@ describe "Tempfile#initialize" do
end
platform_is_not :windows do
- it "sets the permisssions on the tempfile to 0600" do
+ it "sets the permissions on the tempfile to 0600" do
@tempfile.send(:initialize, "basename", tmp(""))
File.stat(@tempfile.path).mode.should == 0100600
end
diff --git a/spec/ruby/library/tmpdir/dir/mktmpdir_spec.rb b/spec/ruby/library/tmpdir/dir/mktmpdir_spec.rb
index 6f56f604257..a619f386a6e 100644
--- a/spec/ruby/library/tmpdir/dir/mktmpdir_spec.rb
+++ b/spec/ruby/library/tmpdir/dir/mktmpdir_spec.rb
@@ -99,7 +99,7 @@ describe "Dir.mktmpdir when passed [Array]" do
Dir.rmdir @tmpdir if File.directory? @tmpdir
end
- it "uses the first element of the passed Array as a prefix and the scond element as a suffix to the tmp-directory" do
+ it "uses the first element of the passed Array as a prefix and the second element as a suffix to the tmp-directory" do
prefix = "before"
suffix = "after"
diff --git a/spec/ruby/library/uri/plus_spec.rb b/spec/ruby/library/uri/plus_spec.rb
index 146cfddf903..4aede12216e 100644
--- a/spec/ruby/library/uri/plus_spec.rb
+++ b/spec/ruby/library/uri/plus_spec.rb
@@ -31,7 +31,7 @@ describe "URI#+" do
(URI.parse('http://a/b/c/../../../') + ".").should == URI("http://a/")
end
- it "doesn't conconicalize the path when adding to the empty string" do
+ it "doesn't canonicalize the path when adding to the empty string" do
(URI.parse('http://a/b/c/../') + "").should == URI("http://a/b/c/../")
end
diff --git a/spec/ruby/library/weakref/weakref_alive_spec.rb b/spec/ruby/library/weakref/weakref_alive_spec.rb
index 5bd7c3166b2..173ea014859 100644
--- a/spec/ruby/library/weakref/weakref_alive_spec.rb
+++ b/spec/ruby/library/weakref/weakref_alive_spec.rb
@@ -8,7 +8,7 @@ describe "WeakRef#weakref_alive?" do
ref.weakref_alive?.should == true
end
- it "returns a falsey value if the object is no longer reachable" do
+ it "returns a falsy value if the object is no longer reachable" do
ref = WeakRefSpec.make_dead_weakref
[false, nil].should include(ref.weakref_alive?)
end
diff --git a/spec/ruby/library/yaml/parse_file_spec.rb b/spec/ruby/library/yaml/parse_file_spec.rb
index 8d307c5dafe..8c59a2d7ef8 100644
--- a/spec/ruby/library/yaml/parse_file_spec.rb
+++ b/spec/ruby/library/yaml/parse_file_spec.rb
@@ -2,9 +2,7 @@ require_relative '../../spec_helper'
require_relative 'fixtures/common'
describe "YAML#parse_file" do
- quarantine! do
- it "returns a YAML::Syck::Map object after parsing a YAML file" do
- YAML.parse_file($test_parse_file).should be_kind_of(YAML::Syck::Map)
- end
+ it "returns a YAML::Syck::Map object after parsing a YAML file" do
+ YAML.parse_file($test_parse_file).should be_kind_of(Psych::Nodes::Document)
end
end
diff --git a/spec/ruby/library/zlib/gzipreader/read_spec.rb b/spec/ruby/library/zlib/gzipreader/read_spec.rb
index a90b2bf498f..67672eb0b88 100644
--- a/spec/ruby/library/zlib/gzipreader/read_spec.rb
+++ b/spec/ruby/library/zlib/gzipreader/read_spec.rb
@@ -49,7 +49,7 @@ describe "GzipReader#read" do
end
describe "at the end of data" do
- it "returns empty string if length prameter is not specified or 0" do
+ it "returns empty string if length parameter is not specified or 0" do
gz = Zlib::GzipReader.new @io
gz.read # read till the end
gz.read(0).should == ""
@@ -57,7 +57,7 @@ describe "GzipReader#read" do
gz.read(nil).should == ""
end
- it "returns nil if length prameter is positive" do
+ it "returns nil if length parameter is positive" do
gz = Zlib::GzipReader.new @io
gz.read # read till the end
gz.read(1).should be_nil