Sha256: 26f09211973b9e20e58a7dffc5adea2ad6dca567035bccd9aaedbe3da516827f
Contents?: true
Size: 540 Bytes
Versions: 1
Compression:
Stored size: 540 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Spotlight::MDItemNative do before do @query = Spotlight::MDItemNative.new(__FILE__) end it "should instanciate" do @query.should be_an_instance_of(Spotlight::MDItemNative) end it "should get attribute by name" do @query.get('kMDItemKind').should eql('Ruby Source File') @query.get(:kMDItemKind).should eql('Ruby Source File') end it "should get nil if attribute is not found" do @query.get('kMDXXXXXX').should be_nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spotlight-0.0.2 | spec/md_item_native_spec.rb |