mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@c1b568b
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8a15857a7f
commit
401b64c4e8
3689 changed files with 6095 additions and 6096 deletions
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "NoMethodError#args" do
|
||||
it "needs to be reviewed for spec completeness"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "ArgumentError" do
|
||||
it "is a subclass of StandardError" do
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require File.expand_path('../fixtures/common', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
require_relative 'fixtures/common'
|
||||
|
||||
describe "Exception#backtrace" do
|
||||
before :each do
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "SystemCallError.===" do
|
||||
it "needs to be reviewed for spec completeness"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "Exception#cause" do
|
||||
it "returns the active exception when an exception is raised" do
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "Encoding::UndefinedConversionError#destination_encoding_name" do
|
||||
it "needs to be reviewed for spec completeness"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "Encoding::UndefinedConversionError#destination_encoding" do
|
||||
it "needs to be reviewed for spec completeness"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require File.expand_path('../fixtures/common', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
require_relative 'fixtures/common'
|
||||
|
||||
describe "Exception#==" do
|
||||
it "returns true if both exceptions are the same object" do
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require File.expand_path('../fixtures/common', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
require_relative 'fixtures/common'
|
||||
|
||||
describe "SystemCallError#errno" do
|
||||
it "needs to be reviewed for spec completeness"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "Encoding::InvalidByteSequenceError#error_bytes" do
|
||||
it "needs to be reviewed for spec completeness"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "Encoding::UndefinedConversionError#error_char" do
|
||||
it "needs to be reviewed for spec completeness"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require File.expand_path('../fixtures/common', __FILE__)
|
||||
require File.expand_path('../shared/new', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
require_relative 'fixtures/common'
|
||||
require_relative 'shared/new'
|
||||
|
||||
describe "Exception.exception" do
|
||||
it_behaves_like :exception_new, :exception
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "LocalJumpError#exit_value" do
|
||||
it "needs to be reviewed for spec completeness"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "Encoding::InvalidByteSequenceError#incomplete_input?" do
|
||||
it "needs to be reviewed for spec completeness"
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require File.expand_path('../fixtures/common', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
require_relative 'fixtures/common'
|
||||
|
||||
describe "Exception#inspect" do
|
||||
it "returns '#<Exception: Exception>' when no message given" do
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "Interrupt" do
|
||||
it "is a subclass of SignalException" do
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "IOError" do
|
||||
it "is a superclass of EOFError" do
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "LoadError#path" do
|
||||
before :each do
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require File.expand_path('../fixtures/common', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
require_relative 'fixtures/common'
|
||||
|
||||
describe "Exception#message" do
|
||||
it "returns the class name if there is no message" do
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "NameError" do
|
||||
it "is a superclass of NoMethodError" do
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "NameError#name" do
|
||||
it "returns a method name as a symbol" do
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require File.expand_path('../fixtures/common', __FILE__)
|
||||
require File.expand_path('../shared/new', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
require_relative 'fixtures/common'
|
||||
require_relative 'shared/new'
|
||||
|
||||
describe "Exception.new" do
|
||||
it_behaves_like :exception_new, :new
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require File.expand_path('../fixtures/common', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
require_relative 'fixtures/common'
|
||||
|
||||
describe "NoMethodError.new" do
|
||||
it "allows passing method args" do
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "RangeError" do
|
||||
it "is a superclass of FloatDomainError" do
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "Encoding::InvalidByteSequenceError#readagain_bytes" do
|
||||
it "needs to be reviewed for spec completeness"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "LocalJumpError#reason" do
|
||||
it "needs to be reviewed for spec completeness"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require File.expand_path('../fixtures/common', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
require_relative 'fixtures/common'
|
||||
|
||||
ruby_version_is "2.3" do
|
||||
describe "NameError#receiver" do
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "StopIteration" do
|
||||
it "is a subclass of IndexError" do
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "ScriptError" do
|
||||
it "is a superclass of LoadError" do
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require File.expand_path('../fixtures/common', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
require_relative 'fixtures/common'
|
||||
|
||||
describe "Exception#set_backtrace" do
|
||||
it "accepts an Array of Strings" do
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "SignalException.new" do
|
||||
it "takes a signal number as the first argument" do
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "SignalException#signm" do
|
||||
it "needs to be reviewed for spec completeness"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "SignalException#signo" do
|
||||
it "needs to be reviewed for spec completeness"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "Encoding::UndefinedConversionError#source_encoding_name" do
|
||||
it "needs to be reviewed for spec completeness"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "Encoding::UndefinedConversionError#source_encoding" do
|
||||
it "needs to be reviewed for spec completeness"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "StandardError" do
|
||||
it "is a superclass of ArgumentError" do
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "SystemExit#status" do
|
||||
it "needs to be reviewed for spec completeness"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "SystemExit#success?" do
|
||||
it "needs to be reviewed for spec completeness"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require File.expand_path('../fixtures/common', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
require_relative 'fixtures/common'
|
||||
|
||||
describe "SystemCallError" do
|
||||
before :each do
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "SystemStackError" do
|
||||
it "is a subclass of Exception" do
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require File.expand_path('../fixtures/common', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
require_relative 'fixtures/common'
|
||||
|
||||
describe "Exception#to_s" do
|
||||
it "returns the self's name if no message is set" do
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../../spec_helper', __FILE__)
|
||||
require_relative '../../spec_helper'
|
||||
|
||||
describe "UncaughtThrowError" do
|
||||
it "is a subclass of ArgumentError" do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue