diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-02-07 16:35:33 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-02-07 16:35:33 +0000 |
commit | 75334db3c6479ea3cd7462d36ca5464d386f9c72 (patch) | |
tree | c97df2c7aa02f3d0e65524890924f1b294871073 /spec/ruby/language | |
parent | 5c7c6763f6cf7b4face107735071c5470e835476 (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/language')
-rw-r--r-- | spec/ruby/language/block_spec.rb | 6 | ||||
-rw-r--r-- | spec/ruby/language/defined_spec.rb | 4 | ||||
-rw-r--r-- | spec/ruby/language/optional_assignments_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/language/private_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/language/proc_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/language/regexp/escapes_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/language/regexp/modifiers_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/language/regexp/repetition_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/language/regexp_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/language/send_spec.rb | 4 | ||||
-rw-r--r-- | spec/ruby/language/until_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/language/while_spec.rb | 2 |
12 files changed, 16 insertions, 16 deletions
diff --git a/spec/ruby/language/block_spec.rb b/spec/ruby/language/block_spec.rb index e35b0ed767..95fd74ce26 100644 --- a/spec/ruby/language/block_spec.rb +++ b/spec/ruby/language/block_spec.rb @@ -36,7 +36,7 @@ describe "A block yielded a single" do m([1, 2]) { |a=5, b=4, c=3| [a, b, c] }.should == [1, 2, 3] end - it "assgins elements to post arguments" do + it "assigns elements to post arguments" do m([1, 2]) { |a=5, b, c, d| [a, b, c, d] }.should == [5, 1, 2, nil] end @@ -250,7 +250,7 @@ describe "A block" do end describe "taking |a, b| arguments" do - it "assgins nil to the arguments when no values are yielded" do + it "assigns nil to the arguments when no values are yielded" do @y.z { |a, b| [a, b] }.should == [nil, nil] end @@ -454,7 +454,7 @@ describe "A block" do @y.z { |a, | a }.should be_nil end - it "assgins the argument a single value yielded" do + it "assigns the argument a single value yielded" do @y.s(1) { |a, | a }.should == 1 end diff --git a/spec/ruby/language/defined_spec.rb b/spec/ruby/language/defined_spec.rb index 6616758011..a36ebf9a74 100644 --- a/spec/ruby/language/defined_spec.rb +++ b/spec/ruby/language/defined_spec.rb @@ -30,12 +30,12 @@ describe "The defined? keyword for literals" do end it "returns nil if one element is not defined" do - ret = defined?([NonExistantConstant, Array]) + ret = defined?([NonExistentConstant, Array]) ret.should == nil end it "returns nil if all elements are not defined" do - ret = defined?([NonExistantConstant, AnotherNonExistantConstant]) + ret = defined?([NonExistentConstant, AnotherNonExistentConstant]) ret.should == nil end diff --git a/spec/ruby/language/optional_assignments_spec.rb b/spec/ruby/language/optional_assignments_spec.rb index 2f50136ba9..29103c67fd 100644 --- a/spec/ruby/language/optional_assignments_spec.rb +++ b/spec/ruby/language/optional_assignments_spec.rb @@ -251,7 +251,7 @@ describe 'Optional variable assignments' do end end - describe 'using compunded constants' do + describe 'using compounded constants' do before :each do Object.send(:remove_const, :A) if defined? Object::A end diff --git a/spec/ruby/language/private_spec.rb b/spec/ruby/language/private_spec.rb index d9cfb1c3d0..e7a871b09b 100644 --- a/spec/ruby/language/private_spec.rb +++ b/spec/ruby/language/private_spec.rb @@ -45,7 +45,7 @@ describe "The private keyword" do lambda { f.foo }.should raise_error(NoMethodError) end - it "changes visiblity of previously called methods with same send/call site" do + it "changes visibility of previously called methods with same send/call site" do g = ::Private::G.new lambda { 2.times do diff --git a/spec/ruby/language/proc_spec.rb b/spec/ruby/language/proc_spec.rb index 4026f3bcf5..c44e711d2b 100644 --- a/spec/ruby/language/proc_spec.rb +++ b/spec/ruby/language/proc_spec.rb @@ -21,7 +21,7 @@ describe "A Proc" do @l.call.should == 1 end - it "raises an ArgumentErro if a value is passed" do + it "raises an ArgumentError if a value is passed" do lambda { @l.call(0) }.should raise_error(ArgumentError) end end diff --git a/spec/ruby/language/regexp/escapes_spec.rb b/spec/ruby/language/regexp/escapes_spec.rb index a4a9cb1793..17501af8c6 100644 --- a/spec/ruby/language/regexp/escapes_spec.rb +++ b/spec/ruby/language/regexp/escapes_spec.rb @@ -67,7 +67,7 @@ describe "Regexps with escape characters" do /\cJ/.match("\r").should be_nil # Parsing precedence - /\cJ+/.match("\n\n").to_a.should == ["\n\n"] # Quantifers apply to entire escape sequence + /\cJ+/.match("\n\n").to_a.should == ["\n\n"] # Quantifiers apply to entire escape sequence /\\cJ/.match("\\cJ").to_a.should == ["\\cJ"] lambda { eval('/[abc\x]/') }.should raise_error(SyntaxError) # \x is treated as a escape sequence even inside a character class # Syntax error diff --git a/spec/ruby/language/regexp/modifiers_spec.rb b/spec/ruby/language/regexp/modifiers_spec.rb index 65c9c24ceb..7c78e67e2b 100644 --- a/spec/ruby/language/regexp/modifiers_spec.rb +++ b/spec/ruby/language/regexp/modifiers_spec.rb @@ -1,7 +1,7 @@ require_relative '../../spec_helper' require_relative '../fixtures/classes' -describe "Regexps with modifers" do +describe "Regexps with modifiers" do it "supports /i (case-insensitive)" do /foo/i.match("FOO").to_a.should == ["FOO"] end diff --git a/spec/ruby/language/regexp/repetition_spec.rb b/spec/ruby/language/regexp/repetition_spec.rb index 07004d8190..5d400dec6f 100644 --- a/spec/ruby/language/regexp/repetition_spec.rb +++ b/spec/ruby/language/regexp/repetition_spec.rb @@ -45,7 +45,7 @@ describe "Regexps with repetition" do it "does not treat {m,n}+ as possessive" do -> { @regexp = eval "/foo(A{0,1}+)Abar/" - }.should complain(/nested repeat operato/) + }.should complain(/nested repeat operator/) @regexp.match("fooAAAbar").to_a.should == ["fooAAAbar", "AA"] end end diff --git a/spec/ruby/language/regexp_spec.rb b/spec/ruby/language/regexp_spec.rb index 6da29ee7a2..6fcf81107c 100644 --- a/spec/ruby/language/regexp_spec.rb +++ b/spec/ruby/language/regexp_spec.rb @@ -97,7 +97,7 @@ describe "Literal Regexps" do it "supports (?> ) (embedded subexpression)" do /(?>foo)(?>bar)/.match("foobar").to_a.should == ["foobar"] - /(?>foo*)obar/.match("foooooooobar").should be_nil # it is possesive + /(?>foo*)obar/.match("foooooooobar").should be_nil # it is possessive end it "supports (?# )" do diff --git a/spec/ruby/language/send_spec.rb b/spec/ruby/language/send_spec.rb index 8bef80173c..84d02afb82 100644 --- a/spec/ruby/language/send_spec.rb +++ b/spec/ruby/language/send_spec.rb @@ -6,10 +6,10 @@ require_relative 'fixtures/send' # will verify special and generic arity code paths for all impls. # # Method naming conventions: -# M - Manditory Args +# M - Mandatory Args # O - Optional Arg # R - Rest Arg -# Q - Post Manditory Args +# Q - Post Mandatory Args specs = LangSendSpecs diff --git a/spec/ruby/language/until_spec.rb b/spec/ruby/language/until_spec.rb index ddeb5d01e4..78c289ff56 100644 --- a/spec/ruby/language/until_spec.rb +++ b/spec/ruby/language/until_spec.rb @@ -220,7 +220,7 @@ describe "The until modifier with begin .. end block" do a.should == [0, 1, 2, 4] end - it "restart the current iteration without reevaluting condition with redo" do + it "restart the current iteration without reevaluating condition with redo" do a = [] i = 0 j = 0 diff --git a/spec/ruby/language/while_spec.rb b/spec/ruby/language/while_spec.rb index 02c52c780f..e172453ca6 100644 --- a/spec/ruby/language/while_spec.rb +++ b/spec/ruby/language/while_spec.rb @@ -330,7 +330,7 @@ describe "The while modifier with begin .. end block" do a.should == [0, 1, 2, 4] end - it "restarts the current iteration without reevaluting condition with redo" do + it "restarts the current iteration without reevaluating condition with redo" do a = [] i = 0 j = 0 |