Sha256: b544c06e65f42f215fe7a0c40678f616917a3c5f9a59b1d5828df3b7e9336401

Contents?: true

Size: 285 Bytes

Versions: 1

Compression:

Stored size: 285 Bytes

Contents

require "core/spec_helper"

describe 'Object' do
  after(:all){remove_constants :RespondTest}

  it "respond_to" do
    class RespondTest
      def test; 2 end
    end
    
    r = RespondTest.new
    r.respond_to(:not_exist).should be_nil
    r.respond_to(:test).should == 2
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby_ext-0.5.1 spec/core/object_spec.rb