Sha256: ee9bba126466556bcd7bafffef10b2ffbe61906c4fd8a2aa6b54fdc0710dc2d8

Contents?: true

Size: 424 Bytes

Versions: 25

Compression:

Stored size: 424 Bytes

Contents

require 'spec_helper'

describe Query::Full do

  before(:each) do
    @index = stub :index
  end

  describe 'result_type' do
    before(:each) do
      @tokens = [
          Query::Token.processed('some'),
          Query::Token.processed('query')
        ]
      @query = Query::Full.new @tokens, @index
    end
    it "should return a specific type" do
      @query.result_type.should == Results::Full
    end
  end

end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
picky-0.10.5 spec/lib/query/full_spec.rb
picky-0.10.4 spec/lib/query/full_spec.rb
picky-0.10.2 spec/lib/query/full_spec.rb
picky-0.10.1 spec/lib/query/full_spec.rb
picky-0.10.0 spec/lib/query/full_spec.rb
picky-0.9.4 spec/lib/query/full_spec.rb
picky-0.9.3 spec/lib/query/full_spec.rb
picky-0.9.2 spec/lib/query/full_spec.rb
picky-0.9.1 spec/lib/query/full_spec.rb
picky-0.9.0 spec/lib/query/full_spec.rb
picky-0.3.0 spec/lib/query/full_spec.rb
picky-0.2.4 spec/lib/query/full_spec.rb
picky-0.2.3 spec/lib/query/full_spec.rb
picky-0.2.2 spec/lib/query/full_spec.rb
picky-0.2.1 spec/lib/query/full_spec.rb
picky-0.2.0 spec/lib/query/full_spec.rb
picky-0.1.0 spec/lib/query/full_spec.rb
picky-0.0.9 spec/lib/query/full_spec.rb
picky-0.0.8 spec/lib/query/full_spec.rb
picky-0.0.7 spec/lib/query/full_spec.rb