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
visionmedia-commander-3.2.7 spec/core_ext/object_spec.rb
visionmedia-commander-3.2.8 spec/core_ext/object_spec.rb
visionmedia-commander-3.2.9 spec/core_ext/object_spec.rb
commander-3.3.0 spec/core_ext/object_spec.rb