spec/candy/array_spec.rb in candy-0.2.9 vs spec/candy/array_spec.rb in candy-0.2.10

- old
+ new

@@ -49,9 +49,17 @@ that.bits << 'schadenfreude' @this.refresh @this.bits[3].should == 'schadenfreude' end + it "is enumerable" do + @this.bits.map{|b| b.upcase}.should == ['PEANUT', 'ALMONDS', 'TITANIUM'] + end + + it "is sortable" do + @this.bits.sort.should == ['almonds', 'peanut', 'titanium'] + end + after(:each) do Zagnut.collection.remove end end \ No newline at end of file