spec/module/collections_spec.rb in ampere-1.1.1 vs spec/module/collections_spec.rb in ampere-1.2.0

- old
+ new

@@ -70,9 +70,14 @@ it 'should be convertible to an array' do republicans = President.where(:party => "Republican") republicans.to_a.map(&:name).should == ["Ulysses S. Grant", "Abraham Lincoln"] end + it 'should give its first and last elements non-lazily' do + President.first.name.should eq("Millard Fillmore") + President.last.name.should eq("Jimmy Carter") + end + ### after :all do Ampere.disconnect Redis.new.flushall