Sha256: 1cae44778e62d34a34d74f4755ab368b2e168839dc50721daa1ef5657a81c01d

Contents?: true

Size: 519 Bytes

Versions: 24

Compression:

Stored size: 519 Bytes

Contents

describe Object do
  
  describe "#get_binding" do
    it "should return the objects binding" do
      lambda {}.get_binding.should be_instance_of(Binding)
    end
  end

  describe "#method_missing" do
    it "should preserve its original behavior for missing methods" do
      lambda { i_am_a_missing_method() }.should raise_error(NoMethodError)
    end

    it "should preserve its original behavior for missing variables" do
      lambda { i_am_a_missing_variable }.should raise_error(NameError)
    end
  end

end

Version data entries

24 entries across 24 versions & 4 rubygems

Version Path
crishoj-commander-3.3.0 spec/core_ext/object_spec.rb
ktec-commander-3.3.1 spec/core_ext/object_spec.rb
visionmedia-commander-3.0.0 spec/core_ext/object_spec.rb
visionmedia-commander-3.0.1 spec/core_ext/object_spec.rb
visionmedia-commander-3.0.2 spec/core_ext/object_spec.rb
visionmedia-commander-3.0.3 spec/core_ext/object_spec.rb
visionmedia-commander-3.1.0 spec/core_ext/object_spec.rb
visionmedia-commander-3.1.1 spec/core_ext/object_spec.rb
visionmedia-commander-3.1.2 spec/core_ext/object_spec.rb
visionmedia-commander-3.1.4 spec/core_ext/object_spec.rb
visionmedia-commander-3.1.5 spec/core_ext/object_spec.rb
visionmedia-commander-3.1.6 spec/core_ext/object_spec.rb
visionmedia-commander-3.1.7 spec/core_ext/object_spec.rb
visionmedia-commander-3.1.8 spec/core_ext/object_spec.rb
visionmedia-commander-3.2.0 spec/core_ext/object_spec.rb
visionmedia-commander-3.2.2 spec/core_ext/object_spec.rb
visionmedia-commander-3.2.3 spec/core_ext/object_spec.rb
visionmedia-commander-3.2.4 spec/core_ext/object_spec.rb
visionmedia-commander-3.2.5 spec/core_ext/object_spec.rb
visionmedia-commander-3.2.6 spec/core_ext/object_spec.rb