Sha256: 067292b522fb1be516b13e8b0e633a4678dc0910d849bc750f52faec44199c9c

Contents?: true

Size: 612 Bytes

Versions: 2

Compression:

Stored size: 612 Bytes

Contents

require 'spec_helper'
module Polygon
  describe Database, "entries" do

    let(:connection){ Polygon.connection(fixtures_path) }

    subject{ connection.query{ sitemap } }

    it 'returns a Relation' do
      subject.should be_a(Relation)
    end

    it 'iterates tuples with entries, path and lastmod' do
      subject.each do |tuple|
        tuple.should have_key(:entry)
        tuple[:entry].should be_a(Entry)

        tuple.should have_key(:path)
        tuple[:path].should be_a(String)

        tuple.should have_key(:lastmod)
        tuple[:lastmod].should be_a(String)
      end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
polygon-0.10.1 spec/database/test_sitemap.rb
polygon-0.10.0 spec/database/test_sitemap.rb