spec/lib/extensions/array_spec.rb in picky-0.12.1 vs spec/lib/extensions/array_spec.rb in picky-0.12.2

- old
+ new

@@ -5,19 +5,9 @@ describe 'sort_by_levenshtein!' do it 'should sort right' do ['fish', 'flash', 'flush', 'smooch'].sort_by_levenshtein!(:fush).should == ['fish', 'flush', 'flash', 'smooch'] end end - - describe 'random' do - it 'should choose one element from the array' do - left = [1,2,3] - 100.times do - left.delete [1,2,3].random - end - left.should be_empty - end - end describe "clustered_uniq_fast" do it "should generate a new array" do ary = [:test1, :test2, :test1] ary.clustered_uniq_fast.object_id.should_not == ary.object_id \ No newline at end of file