Sha256: dba304155785f81f217fa41a60d3e543efc65bb4424a170de39e442e587d4053
Contents?: true
Size: 698 Bytes
Versions: 1
Compression:
Stored size: 698 Bytes
Contents
require 'spec_helper' module Polygon describe Database, "entries" do let(:database){ Database.new fixtures_path } subject{ database.sitemap } it 'is returned by dataset' do subject.should eq(database.dataset(:sitemap)) end it 'returns a Alf::Iterator' do subject.should be_a(Alf::Iterator) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polygon-0.9.1 | spec/database/test_sitemap.rb |