Sha256: 2907ed4e8df04a0460c11499aeeab98b404c58504d0707a434b9c36bb7a960c0

Contents?: true

Size: 412 Bytes

Versions: 5

Compression:

Stored size: 412 Bytes

Contents

require 'test_helpers'
module Alf
  describe "Key inference" do

    subject{ expr.keys }

    (Path.dir/"queries.yml").load.each do |query|
      alf  = query['alf']
      keys = query['keys']

      describe "Key inference on '#{query}'" do
        let(:expr){ conn.parse(alf) }

        it 'should be as expected' do
          subject.should eq(Alf::Keys.coerce(keys))
        end
      end
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alf-0.16.3 spec/key-inference/test_all.rb
alf-0.16.2 spec/key-inference/test_all.rb
alf-0.16.1 spec/key-inference/test_all.rb
alf-0.16.0 spec/key-inference/test_all.rb
alf-0.15.0 spec/key-inference/test_all.rb