Sha256: 1ddb1fcfea72466e74e1be78ce9e0436fde3a636ccac70a6470509a68f00ad4e

Contents?: true

Size: 1.44 KB

Versions: 52

Compression:

Stored size: 1.44 KB

Contents

require File.expand_path('../../../spec_helper', __FILE__)

describe "StandardError" do
  it "is a superclass of ArgumentError" do
    StandardError.should be_ancestor_of(ArgumentError)
  end

  it "is a superclass of IOError" do
    StandardError.should be_ancestor_of(IOError)
  end

  it "is a superclass of IndexError" do
    StandardError.should be_ancestor_of(IndexError)
  end

  it "is a superclass of LocalJumpError" do
    StandardError.should be_ancestor_of(LocalJumpError)
  end

  it "is a superclass of NameError" do
    StandardError.should be_ancestor_of(NameError)
  end

  it "is a superclass of RangeError" do
    StandardError.should be_ancestor_of(RangeError)
  end

  it "is a superclass of RegexpError" do
    StandardError.should be_ancestor_of(RegexpError)
  end

  it "is a superclass of RuntimeError" do
    StandardError.should be_ancestor_of(RuntimeError)
  end

  ruby_version_is ""..."1.9" do
    it "is a superclass of SecurityError" do
      StandardError.should be_ancestor_of(SecurityError)
    end
  end

  it "is a superclass of SystemCallError" do
    StandardError.should be_ancestor_of(SystemCallError.new("").class)
  end
  it "is a superclass of ThreadError" do
    StandardError.should be_ancestor_of(ThreadError)
  end

  it "is a superclass of TypeError" do
    StandardError.should be_ancestor_of(TypeError)
  end

  it "is a superclass of ZeroDivisionError" do
    StandardError.should be_ancestor_of(ZeroDivisionError)
  end
end

Version data entries

52 entries across 52 versions & 2 rubygems

Version Path
rhodes-7.6.0 spec/framework_spec/app/spec/core/exception/standard_error_spec.rb
rhodes-7.5.1 spec/framework_spec/app/spec/core/exception/standard_error_spec.rb
rhodes-7.4.1 spec/framework_spec/app/spec/core/exception/standard_error_spec.rb
rhodes-7.1.17 spec/framework_spec/app/spec/core/exception/standard_error_spec.rb
rhodes-6.2.0 spec/framework_spec/app/spec/core/exception/standard_error_spec.rb
rhodes-6.0.11 spec/framework_spec/app/spec/core/exception/standard_error_spec.rb
rhodes-5.5.18 spec/framework_spec/app/spec/core/exception/standard_error_spec.rb
rhodes-5.5.17 spec/framework_spec/app/spec/core/exception/standard_error_spec.rb
rhodes-5.5.15 spec/framework_spec/app/spec/core/exception/standard_error_spec.rb
rhodes-5.5.0.22 spec/framework_spec/app/spec/core/exception/standard_error_spec.rb
rhodes-5.5.2 spec/framework_spec/app/spec/core/exception/standard_error_spec.rb
rhodes-5.5.0.7 spec/framework_spec/app/spec/core/exception/standard_error_spec.rb
rhodes-5.5.0.3 spec/framework_spec/app/spec/core/exception/standard_error_spec.rb
rhodes-5.5.0 spec/framework_spec/app/spec/core/exception/standard_error_spec.rb
tauplatform-1.0.3 spec/framework_spec/app/spec/core/exception/standard_error_spec.rb
tauplatform-1.0.2 spec/framework_spec/app/spec/core/exception/standard_error_spec.rb
tauplatform-1.0.1 spec/framework_spec/app/spec/core/exception/standard_error_spec.rb
rhodes-3.5.1.12 spec/framework_spec/app/spec/core/exception/standard_error_spec.rb
rhodes-3.3.5 spec/framework_spec/app/spec/core/exception/standard_error_spec.rb
rhodes-3.4.2 spec/framework_spec/app/spec/core/exception/standard_error_spec.rb