spec/module/collections_spec.rb in ampere-0.1.0 vs spec/module/collections_spec.rb in ampere-0.1.2

- old
+ new

@@ -25,9 +25,10 @@ it 'should be returned by where() queries' do democrats = President.where(:party => "Democratic") democrats.class.should == Ampere::Collection democrats.model.should == President democrats.raw_array.length.should == 3 + democrats.length.should == 3 end it 'should be accessible via [] like an Array' do whigs = President.where(:party => "Whig") whigs[0].name.should == "Millard Fillmore"