Sha256: 2d7b256aceeef121356b97412477495a352d52d141bdbd99ad11239fb30b5eaa

Contents?: true

Size: 479 Bytes

Versions: 14

Compression:

Stored size: 479 Bytes

Contents

require 'spec_helper'

describe Looksee::ObjectMixin do
  describe "#ls" do
    before do
      @object = Object.new
      Looksee.stub(:default_specifiers).and_return([])
    end

    it "should return an Inspector for the object's lookup path using the given arguments" do
      result = @object.ls(:private)
      result.should be_a(Looksee::Inspector)
      result.lookup_path.object.should.equal?(@object)
      result.visibilities.should == Set[:private]
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
looksee-4.4.0 spec/looksee/core_ext_spec.rb
looksee-4.2.0 spec/looksee/core_ext_spec.rb
looksee-4.1.0 spec/looksee/core_ext_spec.rb
looksee-4.0.0-universal-java-1.8 spec/looksee/core_ext_spec.rb
looksee-4.0.0 spec/looksee/core_ext_spec.rb
looksee-3.1.1 spec/looksee/core_ext_spec.rb
looksee-3.1.0-universal-java-1.8 spec/looksee/core_ext_spec.rb
looksee-3.1.0 spec/looksee/core_ext_spec.rb
looksee-3.0.0-universal-java-1.8 spec/looksee/core_ext_spec.rb
looksee-3.0.0 spec/looksee/core_ext_spec.rb
looksee-2.1.1-universal-java-1.6 spec/looksee/core_ext_spec.rb
looksee-2.1.1 spec/looksee/core_ext_spec.rb
looksee-2.1.0-universal-java-1.6 spec/looksee/core_ext_spec.rb
looksee-2.1.0 spec/looksee/core_ext_spec.rb