Sha256: 13eb10ad53e1e86ea4111bb2a71a9dbd67ec0dd6722d5454730d748220ac8b8a

Contents?: true

Size: 486 Bytes

Versions: 7

Compression:

Stored size: 486 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe Spotlight::MDQueryNative do
  before do
    @query = Spotlight::MDQueryNative.new('kMDItemDisplayName = "*_spec.rb"cdw')
  end

  it "should instanciate" do
    @query.should be_an_instance_of(Spotlight::MDQueryNative)
  end

  it "should execute" do
    @query.set_search_scopes([File.expand_path(File.dirname(__FILE__))]);
    @query.execute.first.should be_an_instance_of(Spotlight::MDItemNative)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spotlight-0.0.8 spec/md_query_native_spec.rb
spotlight-0.0.7 spec/md_query_native_spec.rb
spotlight-0.0.6 spec/md_query_native_spec.rb
spotlight-0.0.5 spec/md_query_native_spec.rb
spotlight-0.0.4 spec/md_query_native_spec.rb
spotlight-0.0.3 spec/md_query_native_spec.rb
spotlight-0.0.2 spec/md_query_native_spec.rb