Sha256: 3f8d8b22e175d275c540c30947d1208809482564fd01246c67d3969036bfa3a6
Contents?: true
Size: 613 Bytes
Versions: 2
Compression:
Stored size: 613 Bytes
Contents
require 'spec_helper' module Polygon describe Database, "entries" do let(:connection){ Polygon.connection(fixtures_path) } subject{ connection.query{ entries } } it 'should be a Relation' do subject.should be_a(Relation) end it 'iterates tuples with entries' do subject.each do |tuple| tuple.should have_key(:entry) tuple[:entry].should be_a(Entry) end end it 'iterates tuples with entries of different paths' do paths = subject.map{|t| t[:entry].relative_path.to_s }.uniq paths.size.should eq(subject.to_a.size) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
polygon-0.10.1 | spec/database/test_entries.rb |
polygon-0.10.0 | spec/database/test_entries.rb |