spec/integration/criteria_spec.rb in motion-yapper-0.0.2 vs spec/integration/criteria_spec.rb in motion-yapper-0.0.3

- old
+ new

@@ -69,9 +69,13 @@ describe '#all' do it 'returns all documents' do WhereDocument.all.to_a.count.should == 6 end + it 'returns documents that do not contain changes' do + WhereDocument.all.first.changes.should == {} + end + describe 'with a document that has no indexes' do before do class NoIndexDocument include Yapper::Document