Sha256: 668934085206e9153c16c51bb0c46d6051025ffcaf9ef3a6cfc8df60cc79d55b

Contents?: true

Size: 444 Bytes

Versions: 83

Compression:

Stored size: 444 Bytes

Contents

describe :exception_new, :shared => true do
  it "creates a new instance of Exception" do
    Exception.should be_ancestor_of(Exception.send(@method).class)
  end

  it "sets the message of the Exception when passes a message" do
    Exception.send(@method, "I'm broken.").message.should == "I'm broken."
  end

  it "returns 'Exception' for message when no message given" do
    Exception.send(@method).message.should == "Exception"
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
rhodes-3.1.1 spec/framework_spec/app/spec/core/exception/shared/new.rb
rhodes-3.1.1.beta spec/framework_spec/app/spec/core/exception/shared/new.rb
rhodes-3.1.0 spec/framework_spec/app/spec/core/exception/shared/new.rb
rhodes-3.1.0.beta.5 spec/framework_spec/app/spec/core/exception/shared/new.rb
rhodes-3.1.0.beta.4 spec/framework_spec/app/spec/core/exception/shared/new.rb
rhodes-3.1.0.beta.3 spec/framework_spec/app/spec/core/exception/shared/new.rb
rhodes-3.1.0.beta.2 spec/framework_spec/app/spec/core/exception/shared/new.rb
rhodes-3.1.0.beta.1 spec/framework_spec/app/spec/core/exception/shared/new.rb
rhodes-3.0.2 spec/framework_spec/app/spec/core/exception/shared/new.rb
rhodes-3.0.2.beta.1 spec/framework_spec/app/spec/core/exception/shared/new.rb
rhodes-3.0.1 spec/framework_spec/app/spec/core/exception/shared/new.rb
rhodes-3.0.1.beta.8 spec/framework_spec/app/spec/core/exception/shared/new.rb
rhodes-3.0.1.beta.7 spec/framework_spec/app/spec/core/exception/shared/new.rb
rhodes-3.0.1.beta.6 spec/framework_spec/app/spec/core/exception/shared/new.rb
rhodes-3.0.1.beta.5 spec/framework_spec/app/spec/core/exception/shared/new.rb
rhodes-3.0.1.beta.4 spec/framework_spec/app/spec/core/exception/shared/new.rb
rhodes-3.0.1.beta.3 spec/framework_spec/app/spec/core/exception/shared/new.rb
rhodes-3.0.1.beta.2 spec/framework_spec/app/spec/core/exception/shared/new.rb
rhodes-3.0.0 spec/framework_spec/app/spec/core/exception/shared/new.rb
rhodes-3.0.0.beta.7 spec/framework_spec/app/spec/core/exception/shared/new.rb